]> Cypherpunks repositories - gostls13.git/commit
runtime: clean up redundant calls to SetGCPercent in debug_test.go
authorMichael Anthony Knyszek <mknyszek@google.com>
Mon, 6 Dec 2021 22:53:35 +0000 (17:53 -0500)
committerMichael Knyszek <mknyszek@google.com>
Tue, 7 Dec 2021 00:27:57 +0000 (00:27 +0000)
commit6f65d470d8b688573891420f7a428191d8c6cd49
treed567eeaac3742bdf45fd359e8d16aa0dac95f761
parent79b425e9fca11d189142504bc81cf4e009092f6d
runtime: clean up redundant calls to SetGCPercent in debug_test.go

SetGCPercent(-1) is called by several tests in debug_test.go (followed
by a call to runtime.GC) due to #49370. However, startDebugCallWorker
already actually has this, just without the runtime.GC call (allowing an
in-progress GC to still mess up the test).

This CL consolidates SetGCPercent into startDebugDebugCallWorker where
applicable.

Change-Id: Ifa12d6a911f1506e252d3ddf03004cf2ab3f4ee4
Reviewed-on: https://go-review.googlesource.com/c/go/+/369751
Trust: Michael Knyszek <mknyszek@google.com>
Run-TryBot: Michael Knyszek <mknyszek@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: David Chase <drchase@google.com>
src/runtime/debug_test.go