]> Cypherpunks repositories - gostls13.git/commit
runtime: simplify sweep allocation counting
authorAustin Clements <austin@google.com>
Fri, 23 Dec 2016 01:00:18 +0000 (18:00 -0700)
committerAustin Clements <austin@google.com>
Fri, 3 Mar 2017 17:02:16 +0000 (17:02 +0000)
commitb50b72858714f29f7147c0d58444398345ac8188
treeb3ca07e2c454f9448271198fe65ad49047779815
parentf1ba75f8c577e1471f646ef3715fc2f41dd423ef
runtime: simplify sweep allocation counting

Currently sweep counts the number of allocated objects, computes the
number of free objects from that, then re-computes the number of
allocated objects from that. Simplify and clean this up by skipping
these intermediate steps.

Change-Id: I3ed98e371eb54bbcab7c8530466c4ab5fde35f0a
Reviewed-on: https://go-review.googlesource.com/34935
Run-TryBot: Austin Clements <austin@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Marvin Stenger <marvin.stenger94@gmail.com>
Reviewed-by: Rick Hudson <rlh@golang.org>
src/runtime/mbitmap.go
src/runtime/mgcsweep.go