diff options
Diffstat (limited to 'src/runtime/mpagealloc.go')
| -rw-r--r-- | src/runtime/mpagealloc.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/runtime/mpagealloc.go b/src/runtime/mpagealloc.go index 46d3ebacaf..c9491e31f4 100644 --- a/src/runtime/mpagealloc.go +++ b/src/runtime/mpagealloc.go @@ -81,6 +81,8 @@ const ( // there should this change. pallocChunksL2Bits = heapAddrBits - logPallocChunkBytes - pallocChunksL1Bits pallocChunksL1Shift = pallocChunksL2Bits + + vmaNamePageAllocIndex = "page alloc index" ) // maxSearchAddr returns the maximum searchAddr value, which indicates @@ -401,7 +403,7 @@ func (p *pageAlloc) grow(base, size uintptr) { if p.chunks[c.l1()] == nil { // Create the necessary l2 entry. const l2Size = unsafe.Sizeof(*p.chunks[0]) - r := sysAlloc(l2Size, p.sysStat) + r := sysAlloc(l2Size, p.sysStat, vmaNamePageAllocIndex) if r == nil { throw("pageAlloc: out of memory") } |
