diff options
| author | Austin Clements <austin@google.com> | 2015-05-26 14:32:24 -0400 |
|---|---|---|
| committer | Austin Clements <austin@google.com> | 2015-05-28 17:40:19 +0000 |
| commit | f2c3957ed8b44f29aaf9a1a7ddc5208ae2168dc9 (patch) | |
| tree | 2f71aaeaffab4c92b25295ad47aa9fb8130bb789 /src/encoding/json/encode.go | |
| parent | f90d802b6102ced82377ddc16f81f299c039ce83 (diff) | |
| download | go-f2c3957ed8b44f29aaf9a1a7ddc5208ae2168dc9.tar.xz | |
runtime: disable GC around TestGoroutineParallelism
TestGoroutineParallelism can deadlock if the GC runs during the
test. Currently it tries to prevent this by forcing a GC before the
test, but this is best effort and fails completely if GOGC is very low
for testing.
This change replaces this best-effort fix with simply setting GOGC to
off for the duration of the test.
Change-Id: I8229310833f241b149ebcd32845870c1cb14e9f8
Reviewed-on: https://go-review.googlesource.com/10454
Reviewed-by: Russ Cox <rsc@golang.org>
Diffstat (limited to 'src/encoding/json/encode.go')
0 files changed, 0 insertions, 0 deletions
