]> Cypherpunks repositories - gostls13.git/commit
runtime: track all heap arenas in a slice
authorAustin Clements <austin@google.com>
Wed, 26 Sep 2018 18:20:58 +0000 (14:20 -0400)
committerAustin Clements <austin@google.com>
Thu, 15 Nov 2018 19:14:10 +0000 (19:14 +0000)
commite500ffd88cb906014320607c6a03a5fd05ee84cf
treef88b8f4372037b1e89608faaf91a6e8eab2a6453
parentb2df0bd5f53e599fef9fcb808304dd0e5ea3ba0b
runtime: track all heap arenas in a slice

Currently, there's no efficient way to iterate over the Go heap. We're
going to need this for fast free page sweeping, so this CL adds a
slice of all allocated heap arenas. This will also be useful for
generational GC.

For #18155.

Change-Id: I58d126cfb9c3f61b3125d80b74ccb1b2169efbcc
Reviewed-on: https://go-review.googlesource.com/c/138076
Run-TryBot: Austin Clements <austin@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Rick Hudson <rlh@golang.org>
src/runtime/malloc.go
src/runtime/mheap.go