diff options
| author | Rick Hudson <rlh@golang.org> | 2016-02-04 11:41:48 -0500 |
|---|---|---|
| committer | Rick Hudson <rlh@golang.org> | 2016-04-27 21:54:35 +0000 |
| commit | 2ac8bdc52ae1ea0418df465de3f1ef36f49e2274 (patch) | |
| tree | f7b3cf58fd7187ac66214efc18c7260e79b33bba /src/runtime/malloc.go | |
| parent | 6d6e16001bb04d4bf60c6d14d1f64684a043ef6c (diff) | |
| download | go-2ac8bdc52ae1ea0418df465de3f1ef36f49e2274.tar.xz | |
[dev.garbage] runtime: bitmap allocation data structs
The bitmap allocation data structure prototypes. Before
this is released these underlying data structures need
to be more performant but the signatures of helper
functions utilizing these structures will remain stable.
Change-Id: I5ace12f2fb512a7038a52bbde2bfb7e98783bcbe
Reviewed-on: https://go-review.googlesource.com/19221
Reviewed-by: Austin Clements <austin@google.com>
Run-TryBot: Austin Clements <austin@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Diffstat (limited to 'src/runtime/malloc.go')
| -rw-r--r-- | src/runtime/malloc.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/runtime/malloc.go b/src/runtime/malloc.go index 5f1e2f64c0..fe13b8b9a3 100644 --- a/src/runtime/malloc.go +++ b/src/runtime/malloc.go @@ -97,6 +97,9 @@ const ( pageShift = _PageShift pageSize = _PageSize pageMask = _PageMask + // By construction, single page spans of the smallest object class + // have the most objects per span. + maxObjsPerSpan = pageSize / 8 mSpanInUse = _MSpanInUse |
