]> Cypherpunks repositories - gostls13.git/commit
runtime: abstract indexing of arena index
authorAustin Clements <austin@google.com>
Fri, 16 Feb 2018 22:53:16 +0000 (17:53 -0500)
committerAustin Clements <austin@google.com>
Wed, 21 Feb 2018 20:32:34 +0000 (20:32 +0000)
commite9db7b9dd147d787883813a772b7cd5700b87114
tree7f260567971de0d40c8f78f4050bf456fa2831a3
parent3e214e5693ff8df58011db8250cdd8874a63ea17
runtime: abstract indexing of arena index

Accessing the arena index is about to get slightly more complicated.
Abstract this away into a set of functions for going back and forth
between addresses and arena slice indexes.

For #23862.

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