1. 08 Jul, 2017 1 commit
    • Josh Bleecher Snyder's avatar
      test: deflake chan/select3.go · a1e7fb4e
      Josh Bleecher Snyder authored
      On a slow or distracted machine, 0.1s is sometimes
      not long enough for a non-blocking function call to complete.
      This causes rare test flakes.
      They can be easily reproduced by reducing the wait time to (say) 100ns.
      
      For non-blocking functions, increase the window from 100ms to 10s.
      Using different windows for block and non-blocking functions,
      allows us to reduce the time for blocking functions.
      The risk here is false negatives, but that risk is low;
      this test is run repeatedly on many fast machines,
      for which 10ms is ample time.
      This reduces the time required to run the test by a factor of 10,
      from ~1s to ~100ms.
      
      Fixes #20299
      
      Change-Id: Ice9a641a66c6c101d738a2ebe1bcb144ae3c9916
      Reviewed-on: https://go-review.googlesource.com/47812
      Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com>
      Reviewed-by: default avatarBrad Fitzpatrick <bradfitz@golang.org>
      TryBot-Result: Gobot Gobot <gobot@golang.org>
      a1e7fb4e
  2. 07 Jul, 2017 8 commits
  3. 06 Jul, 2017 13 commits
  4. 05 Jul, 2017 1 commit
  5. 04 Jul, 2017 1 commit
  6. 03 Jul, 2017 1 commit
    • Austin Clements's avatar
      runtime: clean up mheap.allocLarge · a89e6be5
      Austin Clements authored
      mheap.allocLarge just calls bestFitTreap and is the only caller of
      bestFitTreap. Flatten these into a single function. Also fix their
      comments: allocLarge claims to return exactly npages but can in fact
      return a larger span, and h.freelarge is not in fact indexed by span
      start address.
      
      Change-Id: Ia20112bdc46643a501ea82ea77c58596bc96f125
      Reviewed-on: https://go-review.googlesource.com/47315
      Run-TryBot: Austin Clements <austin@google.com>
      TryBot-Result: Gobot Gobot <gobot@golang.org>
      Reviewed-by: default avatarRick Hudson <rlh@golang.org>
      a89e6be5
  7. 30 Jun, 2017 9 commits
  8. 29 Jun, 2017 6 commits