1. 07 Sep, 2019 7 commits
  2. 06 Sep, 2019 18 commits
  3. 05 Sep, 2019 2 commits
  4. 04 Sep, 2019 10 commits
  5. 03 Sep, 2019 3 commits
    • Filippo Valsorda's avatar
      crypto/x509: remove IsCA exception for broken Entrust root · 14521198
      Filippo Valsorda authored
      The exception allowed a specific intermediate [1] to chain up to a
      broken root that lacked the CA:TRUE X509v3 Basic Constraint.
      
      The broken root [2] is expiring at the end of 2019, so we can remove the
      exception in Go 1.14.
      
      Moreover, there is a reissued version of that root [3] (same Subject and
      SPKI, valid CA) which expires in 2029, so root stores should have
      migrated to it already, making the exception unnecessary.
      
      [1]: https://crt.sh/?caid=57
      [2]: https://crt.sh/?id=1616049
      [3]: https://crt.sh/?id=55
      
      Change-Id: I43f51100982791b0e8bac90d143b60851cd46dfc
      Reviewed-on: https://go-review.googlesource.com/c/go/+/193038
      Run-TryBot: Filippo Valsorda <filippo@golang.org>
      TryBot-Result: Gobot Gobot <gobot@golang.org>
      Reviewed-by: default avatarBrad Fitzpatrick <bradfitz@golang.org>
      14521198
    • Keith Randall's avatar
      cmd/compile,runtime: generate hash functions only for types which are map keys · 36f30ba2
      Keith Randall authored
      Right now we generate hash functions for all types, just in case they
      are used as map keys. That's a lot of wasted effort and binary size
      for types which will never be used as a map key. Instead, generate
      hash functions only for types that we know are map keys.
      
      Just doing that is a bit too simple, since maps with an interface type
      as a key might have to hash any concrete key type that implements that
      interface. So for that case, implement hashing of such types at
      runtime (instead of with generated code). It will be slower, but only
      for maps with interface types as keys, and maybe only a bit slower as
      the aeshash time probably dominates the dispatch time.
      
      Reorg where we keep the equals and hash functions. Move the hash function
      from the key type to the map type, saving a field in every non-map type.
      That leaves only one function in the alg structure, so get rid of that and
      just keep the equal function in the type descriptor itself.
      
      cmd/go now has 10 generated hash functions, instead of 504. Makes
      cmd/go 1.0% smaller. Update #6853.
      
      Speed on non-interface keys is unchanged. Speed on interface keys
      is ~20% slower:
      
      name                  old time/op  new time/op  delta
      MapInterfaceString-8  23.0ns ±21%  27.6ns ±14%  +20.01%  (p=0.002 n=10+10)
      MapInterfacePtr-8     19.4ns ±16%  23.7ns ± 7%  +22.48%   (p=0.000 n=10+8)
      
      Change-Id: I7c2e42292a46b5d4e288aaec4029bdbb01089263
      Reviewed-on: https://go-review.googlesource.com/c/go/+/191198
      Run-TryBot: Keith Randall <khr@golang.org>
      TryBot-Result: Gobot Gobot <gobot@golang.org>
      Reviewed-by: default avatarMartin Möhrmann <moehrmann@google.com>
      36f30ba2
    • Andrew's avatar
      doc: add Go 1.13 to release history · 671bcb59
      Andrew authored
      Change-Id: I3340561c0b17bf28d8d480e00f5bc8afb2a897ef
      Reviewed-on: https://go-review.googlesource.com/c/go/+/193041
      Run-TryBot: Andrew Bonventre <andybons@golang.org>
      Reviewed-by: default avatarKatie Hockman <katie@golang.org>
      671bcb59