]> Cypherpunks repositories - gostls13.git/commit
runtime: fix check for vacuous page boundary rounding again
authorAustin Clements <austin@google.com>
Fri, 19 Aug 2016 20:03:14 +0000 (16:03 -0400)
committerAustin Clements <austin@google.com>
Fri, 19 Aug 2016 20:16:43 +0000 (20:16 +0000)
commit3de7dbb19145dcc6b7db8da7aef695961dbb5ece
treeb70ac95316581babab8d532575c092456511416d
parenta50f9859bd15784d047875624c9fa91ce69bd85b
runtime: fix check for vacuous page boundary rounding again

The previous fix for this, commit 336dad2a, had everything right in
the commit message, but reversed the test in the code. Fix the test in
the code.

This reversal effectively disabled the scavenger on large page systems
*except* in the rare cases where this code was originally wrong, which
is why it didn't obviously show up in testing.

Fixes #16644. Again. :(

Change-Id: I27cce4aea13de217197db4b628f17860f27ce83e
Reviewed-on: https://go-review.googlesource.com/27402
Run-TryBot: Austin Clements <austin@google.com>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/runtime/mheap.go