1. 27 Jun, 2018 9 commits
    • Vlad Krasnov's avatar
      crypto/elliptic: implement P256 for arm64 · 0246915f
      Vlad Krasnov authored
      This patch ports the existing optimized P256 implementation to arm64.
      
      name            old time/op    new time/op    delta
      pkg:crypto/ecdsa goos:linux goarch:arm64
      SignP256           539µs ±13%      43µs ± 2%  -91.95%  (p=0.000 n=20+20)
      SignP384          13.2ms ± 1%    13.2ms ± 1%     ~     (p=0.739 n=10+10)
      VerifyP256        1.57ms ± 0%    0.12ms ± 0%  -92.40%  (p=0.000 n=18+20)
      KeyGeneration      391µs ± 0%      25µs ± 0%  -93.62%  (p=0.000 n=9+9)
      pkg:crypto/elliptic goos:linux goarch:arm64
      BaseMult          1.66ms ± 0%    1.65ms ± 1%     ~     (p=0.079 n=9+10)
      BaseMultP256       389µs ± 0%      22µs ± 1%  -94.28%  (p=0.000 n=19+20)
      ScalarMultP256    1.03ms ± 0%    0.09ms ± 0%  -91.25%  (p=0.000 n=19+20)
      
      name            old alloc/op   new alloc/op   delta
      pkg:crypto/ecdsa goos:linux goarch:arm64
      SignP256          5.47kB ± 0%    3.20kB ± 0%  -41.50%  (p=0.000 n=20+20)
      SignP384          2.32MB ± 0%    2.32MB ± 0%     ~     (p=0.739 n=10+10)
      VerifyP256        7.65kB ± 4%    0.98kB ± 0%  -87.24%  (p=0.000 n=20+20)
      KeyGeneration     1.41kB ± 0%    0.69kB ± 0%  -51.05%  (p=0.000 n=9+10)
      pkg:crypto/elliptic goos:linux goarch:arm64
      BaseMult            224B ± 0%      224B ± 0%     ~     (all equal)
      BaseMultP256      1.12kB ± 0%    0.29kB ± 0%  -74.29%  (p=0.000 n=20+20)
      ScalarMultP256    1.59kB ± 7%    0.26kB ± 0%  -83.91%  (p=0.000 n=20+20)
      
      name            old allocs/op  new allocs/op  delta
      pkg:crypto/ecdsa goos:linux goarch:arm64
      SignP256            67.0 ± 0%      35.0 ± 0%  -47.76%  (p=0.000 n=20+20)
      SignP384           17.5k ± 0%     17.5k ± 0%     ~     (p=0.725 n=10+10)
      VerifyP256          97.2 ± 3%      17.0 ± 0%  -82.52%  (p=0.000 n=20+20)
      KeyGeneration       21.0 ± 0%      13.0 ± 0%  -38.10%  (p=0.000 n=10+10)
      pkg:crypto/elliptic goos:linux goarch:arm64
      BaseMult            5.00 ± 0%      5.00 ± 0%     ~     (all equal)
      BaseMultP256        16.0 ± 0%       6.0 ± 0%  -62.50%  (p=0.000 n=20+20)
      ScalarMultP256      19.9 ± 6%       5.0 ± 0%  -74.87%  (p=0.000 n=20+20)
      
      Fixes #22806
      
      Change-Id: I0f187074f8c3069bf8692d59e2cf95bdc6061fe7
      Reviewed-on: https://go-review.googlesource.com/99755
      Run-TryBot: Vlad Krasnov <vlad@cloudflare.com>
      TryBot-Result: Gobot Gobot <gobot@golang.org>
      Reviewed-by: default avatarBrendan McMillion <brendan@cloudflare.com>
      Reviewed-by: default avatarBrad Fitzpatrick <bradfitz@golang.org>
      0246915f
    • Brad Fitzpatrick's avatar
      net/http/httptrace: add clarification never added to CL 67430 · 87b7b667
      Brad Fitzpatrick authored
      Updates #19761
      
      Change-Id: Iac3bd4c40002f8e348452b50bff54dee3210d447
      Reviewed-on: https://go-review.googlesource.com/121236Reviewed-by: default avatarIan Lance Taylor <iant@golang.org>
      87b7b667
    • Ian Lance Taylor's avatar
      mime/quotedprintable: accept bytes >= 0x80 · 228b4416
      Ian Lance Taylor authored
      RFC 2045 doesn't permit non-ASCII bytes, but some systems send them
      anyhow. With this change, we accept them. This does make it harder to
      validate quotedprintable data, but on balance this seems like the best
      approach given the existence of systems that generate invalid data.
      
      Fixes #22597
      
      Change-Id: I9f80f90a60b76ada2b5dea658b8dc8aace56cdbd
      Reviewed-on: https://go-review.googlesource.com/121095Reviewed-by: default avatarBrad Fitzpatrick <bradfitz@golang.org>
      228b4416
    • Ian Lance Taylor's avatar
      net: limit concurrent threads to limit on file descriptors · b7498450
      Ian Lance Taylor authored
      At least on Darwin, if getaddrinfo can't open a file descriptor it
      returns EAI_NONAME ("no such host") rather than a meaningful error.
      Limit the number of concurrent getaddrinfo calls to the number of file
      descriptors we can open, to make that meaningless error less likely.
      
      We don't apply the same limit to Go lookups, because for that we will
      return a meaningful "too many open files" error.
      
      Fixes #25694
      
      Change-Id: I601857190aeb64f11e22b4a834c1c6a722a0788d
      Reviewed-on: https://go-review.googlesource.com/121176Reviewed-by: default avatarBryan C. Mills <bcmills@google.com>
      Reviewed-by: default avatarBrad Fitzpatrick <bradfitz@golang.org>
      b7498450
    • Meir Fischer's avatar
      net/http/httptrace: expose request headers for http/1.1 · 7c4c87c0
      Meir Fischer authored
      Some headers, which are set or modified by the http library,
      are not written to the standard http.Request.Header and are
      not included as part of http.Response.Request.Header.
      
      Exposing all headers alleviates this problem.
      
      This is not a complete solution to 19761 since it does not have http/2 support.
      
      Updates #19761
      
      Change-Id: Ie8d4f702f4f671666b120b332378644f094e288b
      Reviewed-on: https://go-review.googlesource.com/67430
      Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
      TryBot-Result: Gobot Gobot <gobot@golang.org>
      Reviewed-by: default avatarBrad Fitzpatrick <bradfitz@golang.org>
      7c4c87c0
    • Cherry Zhang's avatar
      cmd/compile: fold offset into address on Wasm · 1d303a00
      Cherry Zhang authored
      On Wasm, the offset was not folded into LoweredAddr, so it was
      not rematerializeable. This led to the address-taken operation
      in some cases generated too early, before the local variable
      becoming live. The liveness code thinks the variable live when
      the address is taken, then backs it up to live at function
      entry, then complains about it, because nothing other than
      arguments should be live on entry.
      
      This CL folds the offset into the address operation, so it is
      rematerializeable and so generated right before use, after the
      variable actually becomes live.
      
      It might be possible to relax the liveness code not to think a
      variable live when its address being taken, but until the address
      actually being used. But it would be quite complicated. As we're
      late in Go 1.11 freeze, it would be better not to do it. Also,
      I think the address operation is rematerializeable now on all
      architectures, so this is probably less necessary.
      
      This may also be a slight optimization, as the address+offset is
      now rematerializeable, which can be generated on the Wasm stack,
      without using any "registers" which are emulated by local
      variables on Wasm. I don't know how to do benchmarks on Wasm. At
      least, cmd/go binary size shrinks 9K.
      
      Fixes #25966.
      
      Change-Id: I01e5869515d6a3942fccdcb857f924a866876e57
      Reviewed-on: https://go-review.googlesource.com/120599
      Run-TryBot: Cherry Zhang <cherryyz@google.com>
      TryBot-Result: Gobot Gobot <gobot@golang.org>
      Reviewed-by: default avatarRichard Musiol <neelance@gmail.com>
      1d303a00
    • Ian Lance Taylor's avatar
      misc/cgo/test: add retry loop around pthread_create in TestSigprocmask · f03ee913
      Ian Lance Taylor authored
      This is the same retry loop we use in _cgo_try_pthread_create in runtime/cgo.
      
      Fixes #25078
      
      Change-Id: I7ef4d4fc7fb89cbfb674c4f93cbdd7a033dd8983
      Reviewed-on: https://go-review.googlesource.com/121096
      Run-TryBot: Ian Lance Taylor <iant@golang.org>
      TryBot-Result: Gobot Gobot <gobot@golang.org>
      Reviewed-by: default avatarBrad Fitzpatrick <bradfitz@golang.org>
      f03ee913
    • Ian Lance Taylor's avatar
      misc/cgo/test: skip Test18146 in short mode · fbfd38c5
      Ian Lance Taylor authored
      Fixes #21219
      
      Change-Id: I1a2ec1afe06586ed33a3a855b77536490cac3a38
      Reviewed-on: https://go-review.googlesource.com/121115
      Run-TryBot: Ian Lance Taylor <iant@golang.org>
      TryBot-Result: Gobot Gobot <gobot@golang.org>
      Reviewed-by: default avatarBrad Fitzpatrick <bradfitz@golang.org>
      fbfd38c5
    • LE Manh Cuong's avatar
      cmd/link: document limitation of -X · 6dd789fd
      LE Manh Cuong authored
      Fixes #26042
      
      Change-Id: Ica16f14a65c03659a19926852cca5e554c99baf1
      Reviewed-on: https://go-review.googlesource.com/120935Reviewed-by: default avatarIan Lance Taylor <iant@golang.org>
      6dd789fd
  2. 26 Jun, 2018 10 commits
  3. 25 Jun, 2018 10 commits
  4. 24 Jun, 2018 1 commit
  5. 23 Jun, 2018 1 commit
  6. 22 Jun, 2018 9 commits