]> Cypherpunks repositories - gostls13.git/commit
runtime: don't use GOGC in minimum sweep distance
authorAustin Clements <austin@google.com>
Mon, 25 Sep 2017 19:17:28 +0000 (15:17 -0400)
committerAustin Clements <austin@google.com>
Tue, 5 Mar 2019 23:08:16 +0000 (23:08 +0000)
commit4a7d5aa30bab454f546d8f3b6d4b4a27585f1433
tree202a8738c0c958ed3cccf57efe16fcd6b35faada
parent7da03b9fbb5c0f8b771a90be3c3777ffbdde283a
runtime: don't use GOGC in minimum sweep distance

Currently, the minimum sweep distance is 1MB * GOGC/100. It's been
this way since it was introduced in CL 13043 with no justification.

Since there seems to be no good reason to scale the minimum sweep
distance by GOGC, make the minimum sweep distance just 1MB.

Change-Id: I5320574a23c0eec641e346282aab08a3bbb057da
Reviewed-on: https://go-review.googlesource.com/c/go/+/66091
Run-TryBot: Austin Clements <austin@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
Reviewed-by: Rick Hudson <rlh@golang.org>
src/runtime/mgc.go