1. 08 Aug, 2018 1 commit
    • Daniel Martí's avatar
      net: reduce TestSplice/big's memory usage · bc471a52
      Daniel Martí authored
      The old code used splice on a 2GB []byte when not in short mode, meaning
      that running 'go test net' when one had 4GB or less free memory would
      easily result in "out of memory" runtime panics.
      
      Instead, use a much smaller size that is still big enough to not fit
      into a single splice(2) syscall. The new size is just 5MB, so the test
      uses a fraction of the memory it used to, and there's no longer a need
      for a different size on short mode.
      
      This also speeds up the test, which goes from ~1.23s to ~0.01s on my
      laptop.
      
      Fixes #26867.
      
      Change-Id: Iae1daa5c0995b549f41992f44339be32ca1ee5e4
      Reviewed-on: https://go-review.googlesource.com/128535
      Run-TryBot: Daniel Martí <mvdan@mvdan.cc>
      Reviewed-by: default avatarAndrei Tudor Călin <mail@acln.ro>
      Reviewed-by: default avatarIan Lance Taylor <iant@golang.org>
      TryBot-Result: Gobot Gobot <gobot@golang.org>
      bc471a52
  2. 07 Aug, 2018 6 commits
  3. 06 Aug, 2018 3 commits
  4. 04 Aug, 2018 1 commit
  5. 03 Aug, 2018 14 commits
  6. 02 Aug, 2018 12 commits
  7. 01 Aug, 2018 3 commits