]> Cypherpunks repositories - gostls13.git/commit
runtime: remove npreleased in favor of boolean
authorMichael Anthony Knyszek <mknyszek@google.com>
Thu, 4 Oct 2018 15:59:47 +0000 (15:59 +0000)
committerMichael Knyszek <mknyszek@google.com>
Tue, 30 Oct 2018 15:28:01 +0000 (15:28 +0000)
commit78bb91cbd34a8f2f3784ba5df94c0e56c44fc751
tree599d5a55117ca4e198df9103c2bb5423f77fee1d
parentb46bf0240c0663222f837c78644fe90da932d852
runtime: remove npreleased in favor of boolean

This change removes npreleased from mspan since spans may now either be
scavenged or not scavenged; how many of its pages were actually scavenged
doesn't matter. It saves some space in mpsan overhead too, as the boolean
fits into what would otherwise be struct padding.

For #14045.

Change-Id: I63f25a4d98658f5fe21c6a466fc38c59bfc5d0f5
Reviewed-on: https://go-review.googlesource.com/c/139737
Run-TryBot: Michael Knyszek <mknyszek@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Austin Clements <austin@google.com>
src/runtime/mheap.go