1. 24 May, 2016 11 commits
  2. 23 May, 2016 3 commits
  3. 22 May, 2016 1 commit
  4. 21 May, 2016 3 commits
    • Brad Fitzpatrick's avatar
      A+C: automated update (subrepos) · 1f8d2768
      Brad Fitzpatrick authored
      Add Abe Haskins (individual CLA)
      Add Ahmy Yulrizka (individual CLA)
      Add Akihiro Suda (individual CLA)
      Add Alex Vaghin (corporate CLA for Google Inc.)
      Add Arlo Breault (individual CLA)
      Add Audrey Lim (individual CLA)
      Add Benjamin Wester (corporate CLA for Square, Inc.)
      Add Bryan Chan (corporate CLA for IBM)
      Add Christy Perez (corporate CLA for IBM)
      Add Colin Edwards (individual CLA)
      Add David Brophy (individual CLA)
      Add David Sansome (individual CLA)
      Add Diwaker Gupta (individual CLA)
      Add Doug Anderson (corporate CLA for Google Inc.)
      Add Dustin Carlino (corporate CLA for Google Inc.)
      Add Ernest Chiang (individual CLA)
      Add Ethan Burns (corporate CLA for Google Inc.)
      Add Gary Elliott (corporate CLA for Google Inc.)
      Add Hallgrimur Gunnarsson (corporate CLA for Google Inc.)
      Add Hironao OTSUBO (individual CLA)
      Add Holden Huang (individual CLA)
      Add Idora Shinatose (individual CLA)
      Add Irieda Noboru (individual CLA)
      Add Jeff Craig (corporate CLA for Google Inc.)
      Add Joe Henke (individual CLA)
      Add John Schnake (individual CLA)
      Add Jonathan Amsterdam (corporate CLA for Google Inc.)
      Add Kenji Kaneda (individual CLA)
      Add Kenneth Shaw (individual CLA)
      Add Mark Severson (individual CLA)
      Add Martin Garton (individual CLA)
      Add Mathias Leppich (individual CLA)
      Add Maxwell Krohn (individual CLA)
      Add Niall Sheridan (individual CLA)
      Add Nick Patavalis (individual CLA)
      Add Nick Petroni (individual CLA)
      Add Omar Jarjur (corporate CLA for Google Inc.)
      Add Özgür Kesim (individual CLA)
      Add Peter Gonda (corporate CLA for Google Inc.)
      Add Pierre Durand (individual CLA)
      Add Quentin Smith (corporate CLA for Google Inc.)
      Add Ricardo Padilha (individual CLA)
      Add Riku Voipio (corporate CLA for Linaro Limited)
      Add Roland Shoemaker (individual CLA)
      Add Sam Hug (individual CLA)
      Add Sam Whited (individual CLA)
      Add Sami Commerot (corporate CLA for Google Inc.)
      Add Scott Mansfield (corporate CLA for Netflix, Inc.)
      Add Sean Harger (corporate CLA for Google Inc.)
      Add Simon Jefford (individual CLA)
      Add Sridhar Venkatakrishnan (individual CLA)
      Add Tim Swast (corporate CLA for Google Inc.)
      Add Timothy Studd (individual CLA)
      Add Tipp Moseley (corporate CLA for Google Inc.)
      Add Toby Burress (corporate CLA for Google Inc.)
      Add Tzu-Jung Lee (corporate CLA for Currant)
      Add Vadim Grek (individual CLA)
      Add Xudong Zhang (individual CLA)
      
      Updates #12042
      
      Change-Id: I4119a8829119a2b8a9abbea9f52ceebb04878764
      Reviewed-on: https://go-review.googlesource.com/23306Reviewed-by: default avatarIan Lance Taylor <iant@golang.org>
      Reviewed-by: default avatarAndrew Gerrand <adg@golang.org>
      1f8d2768
    • Brad Fitzpatrick's avatar
      net/http: update bundled http2 · def50f8e
      Brad Fitzpatrick authored
      Updates x/net/http2 to git rev 0c607074 for https://golang.org/cl/23311,
      "http2: prevent Server from sending status 100 header after anything else"
      
      New test is in the x/net/http2 package (not bundled to std).
      
      Fixes #14030
      
      Change-Id: Ifc6afa4a5fe35977135428f6d0e9f7c164767720
      Reviewed-on: https://go-review.googlesource.com/23312Reviewed-by: default avatarBrad Fitzpatrick <bradfitz@golang.org>
      Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
      TryBot-Result: Gobot Gobot <gobot@golang.org>
      def50f8e
    • Mikio Hara's avatar
      net: don't crash DNS flood test on darwin · 82ec4cd7
      Mikio Hara authored
      Also renames the test function to TestDNSFlood.
      
      Updates #15659.
      
      Change-Id: Ia562004c43bcc19c2fee9440321c27b591f85da5
      Reviewed-on: https://go-review.googlesource.com/23077Reviewed-by: default avatarBrad Fitzpatrick <bradfitz@golang.org>
      82ec4cd7
  5. 20 May, 2016 13 commits
  6. 19 May, 2016 9 commits
    • Robert Griesemer's avatar
      cmd/compile: don't exit early because of hidden error messages · 448246ad
      Robert Griesemer authored
      Non-syntax errors are always counted to determine if to exit
      early, but then deduplication eliminates them. This can lead
      to situations which report "too many errors" and only one
      error is shown.
      
      De-duplicate non-syntax errors early, at least the ones that
      appear consecutively, and only count the ones actually being
      shown. This doesn't work perfectly as they may not appear in
      sequence, but it's cheap and good enough.
      
      Fixes #14136.
      
      Change-Id: I7b11ebb2e1e082f0d604b88e544fe5ba967af1d7
      Reviewed-on: https://go-review.googlesource.com/23259Reviewed-by: default avatarMatthew Dempsky <mdempsky@google.com>
      448246ad
    • Brad Fitzpatrick's avatar
      context: make DeadlineExceeded have a Timeout method · dc4427f3
      Brad Fitzpatrick authored
      Fixes #14238
      
      Change-Id: I1538bfb5cfa63e36a89df1f6eb9f5a0dcafb6ce5
      Reviewed-on: https://go-review.googlesource.com/23256Reviewed-by: default avatarDave Cheney <dave@cheney.net>
      Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
      TryBot-Result: Gobot Gobot <gobot@golang.org>
      dc4427f3
    • Brad Fitzpatrick's avatar
      net/http/httptest: restore historic ResponseRecorder.HeaderMap behavior · 0b806598
      Brad Fitzpatrick authored
      In Go versions 1 up to and including Go 1.6,
      ResponseRecorder.HeaderMap was both the map that handlers got access
      to, and was the map tests checked their results against. That did not
      mimic the behavior of the real HTTP server (Issue #8857), so HeaderMap
      was changed to be a snapshot at the first write in
      https://golang.org/cl/20047. But that broke cases where the Handler
      never did a write (#15560), so revert the behavior.
      
      Instead, introduce the ResponseWriter.Result method, returning an
      *http.Response. It subsumes ResponseWriter.Trailers which was added
      for Go 1.7 in CL 20047. Result().Header now contains the correct
      answer, and HeaderMap is unchanged in behavior from previous Go
      releases, so we don't break people's tests. People wanting the correct
      behavior can use ResponseWriter.Result.
      
      Fixes #15560
      Updates #8857
      
      Change-Id: I7ea9b56a6b843103784553d67f67847b5315b3d2
      Reviewed-on: https://go-review.googlesource.com/23257Reviewed-by: default avatarDamien Neil <dneil@google.com>
      Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
      TryBot-Result: Gobot Gobot <gobot@golang.org>
      0b806598
    • Brad Fitzpatrick's avatar
      build: unset GOBIN during build · 3b50adbc
      Brad Fitzpatrick authored
      Fixes #14340
      
      Change-Id: I43e1624fafc972fb868708c3857fc8acf1bfbbd7
      Reviewed-on: https://go-review.googlesource.com/23255
      Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
      Reviewed-by: default avatarRob Pike <r@golang.org>
      3b50adbc
    • Austin Clements's avatar
      runtime: fix goroutine priority elevation · 44497eba
      Austin Clements authored
      Currently it's possible for user code to exploit the high scheduler
      priority of the GC worker in conjunction with the runnext optimization
      to elevate a user goroutine to high priority so it will always run
      even if there are other runnable goroutines.
      
      For example, if a goroutine is in a tight allocation loop, the
      following can happen:
      
      1. Goroutine 1 allocates, triggering a GC.
      2. G 1 attempts an assist, but fails and blocks.
      3. The scheduler runs the GC worker, since it is high priority.
         Note that this also starts a new scheduler quantum.
      4. The GC worker does enough work to satisfy the assist.
      5. The GC worker readies G 1, putting it in runnext.
      6. GC finishes and the scheduler runs G 1 from runnext, giving it
         the rest of the GC worker's quantum.
      7. Go to 1.
      
      Even if there are other goroutines on the run queue, they never get a
      chance to run in the above sequence. This requires a confluence of
      circumstances that make it unlikely, though not impossible, that it
      would happen in "real" code. In the test added by this commit, we
      force this confluence by setting GOMAXPROCS to 1 and GOGC to 1 so it's
      easy for the test to repeated trigger GC and wake from a blocked
      assist.
      
      We fix this by making GC always put user goroutines at the end of the
      run queue, instead of in runnext. This makes it so user code can't
      piggy-back on the GC's high priority to make a user goroutine act like
      it has high priority. The only other situation where GC wakes user
      goroutines is waking all blocked assists at the end, but this uses the
      global run queue and hence doesn't have this problem.
      
      Fixes #15706.
      
      Change-Id: I1589dee4b7b7d0c9c8575ed3472226084dfce8bc
      Reviewed-on: https://go-review.googlesource.com/23172Reviewed-by: default avatarRick Hudson <rlh@golang.org>
      44497eba
    • Austin Clements's avatar
      runtime: add 'next' flag to ready · 91740582
      Austin Clements authored
      Currently ready always puts the readied goroutine in runnext. We're
      going to have to change this for some uses, so add a flag for whether
      or not to use runnext.
      
      For now we always pass true so this is a no-op change.
      
      For #15706.
      
      Change-Id: Iaa66d8355ccfe4bbe347570cc1b1878c70fa25df
      Reviewed-on: https://go-review.googlesource.com/23171
      Run-TryBot: Austin Clements <austin@google.com>
      TryBot-Result: Gobot Gobot <gobot@golang.org>
      Reviewed-by: default avatarRick Hudson <rlh@golang.org>
      91740582
    • Ian Lance Taylor's avatar
      cmd/cgo: mark stub functions as no_sanitize_thread · 79ba1e44
      Ian Lance Taylor authored
      When the generated stub functions write back the results to the stack,
      they can in some cases be writing to the same memory on the g0 stack.
      There is no race here (assuming there is no race in the Go code), but
      the thread sanitizer does not know that.  Turn off the thread sanitizer
      for the stub functions to prevent false positive warnings.
      
      Current clang suggests the no_sanitize("thread") attribute, but that
      does not work with clang 3.6 or GCC.  clang 3.6, GCC, and current clang
      all support the no_sanitize_thread attribute, so use that
      unconditionally.
      
      The test case and first version of the patch are from Dmitriy Vyukov.
      
      Change-Id: I80ce92824c6c8cf88ea0fe44f21cf50cf62474c9
      Reviewed-on: https://go-review.googlesource.com/23252
      Run-TryBot: Ian Lance Taylor <iant@golang.org>
      Reviewed-by: default avatarDmitry Vyukov <dvyukov@google.com>
      TryBot-Result: Gobot Gobot <gobot@golang.org>
      79ba1e44
    • Joel Sing's avatar
      runtime/cgo: make cgo work with openbsd ABI changes · 0dcd330b
      Joel Sing authored
      OpenBSD 6.0 (due out November 2016) will support PT_TLS, which will
      allow for the OpenBSD cgo pthread_create() workaround to be removed.
      
      However, in order for Go to continue working on supported OpenBSD
      releases (the current release and the previous release - 5.9 and 6.0,
      once 6.0 is released), we cannot enable PT_TLS immediately. Instead,
      adjust the existing code so that it works with the previous TCB
      allocation and the new TIB allocation. This allows the same Go
      runtime to work on 5.8, 5.9 and later 6.0.
      
      Once OpenBSD 5.9 is no longer supported (May 2017, when 6.1 is
      released), PT_TLS can be enabled and the additional cgo runtime
      code removed.
      
      Change-Id: I3eed5ec593d80eea78c6656cb12557004b2c0c9a
      Reviewed-on: https://go-review.googlesource.com/23197Reviewed-by: default avatarIan Lance Taylor <iant@golang.org>
      Run-TryBot: Joel Sing <joel@sing.id.au>
      TryBot-Result: Gobot Gobot <gobot@golang.org>
      0dcd330b
    • Keith Randall's avatar
      cmd/compile: large ptr literals must escape · d603c27c
      Keith Randall authored
      They get rewritten to NEWs, and they must be marked as escaping
      so walk doesn't try to allocate them back onto the stack.
      
      Fixes #15733
      
      Change-Id: I433033e737c3de51a9e83a5a273168dbc9110b74
      Reviewed-on: https://go-review.googlesource.com/23223
      Run-TryBot: Keith Randall <khr@golang.org>
      TryBot-Result: Gobot Gobot <gobot@golang.org>
      Reviewed-by: default avatarDavid Chase <drchase@google.com>
      d603c27c