]> Cypherpunks repositories - gostls13.git/commit
[dev.garbage] runtime: add stackfreelist
authorRick Hudson <rlh@golang.org>
Mon, 8 Feb 2016 14:53:14 +0000 (09:53 -0500)
committerRick Hudson <rlh@golang.org>
Wed, 27 Apr 2016 21:54:39 +0000 (21:54 +0000)
commitaed861038f876643a67c2297b384b6be140c46c1
treecb90b6b6e28966a2aff61774dec59766c1edc5c7
parent2ac8bdc52ae1ea0418df465de3f1ef36f49e2274
[dev.garbage] runtime: add stackfreelist

The freelist for normal objects and the freelist
for stacks share the same mspan field for holding
the list head but are operated on by different code
sequences. This overloading complicates the use of bit
vectors for allocation of normal objects. This change
refactors the use of the stackfreelist out from the
use of freelist.

Change-Id: I5b155b5b8a1fcd8e24c12ee1eb0800ad9b6b4fa0
Reviewed-on: https://go-review.googlesource.com/19315
Reviewed-by: Austin Clements <austin@google.com>
src/runtime/mheap.go
src/runtime/stack.go