mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
runtime: disable huge pages for GC metadata for small heaps
For #55328. Change-Id: I8792161f09906c08d506cc0ace9d07e76ec6baa6 Reviewed-on: https://go-review.googlesource.com/c/go/+/460316 Reviewed-by: Michael Pratt <mpratt@google.com> Run-TryBot: Michael Knyszek <mknyszek@google.com> TryBot-Result: Gopher Robot <gobot@golang.org>
This commit is contained in:
parent
8c2ff88c61
commit
1f9d80e331
4 changed files with 130 additions and 1 deletions
|
|
@ -144,6 +144,10 @@ type mheap struct {
|
|||
// will never be nil.
|
||||
arenas [1 << arenaL1Bits]*[1 << arenaL2Bits]*heapArena
|
||||
|
||||
// arenasHugePages indicates whether arenas' L2 entries are eligible
|
||||
// to be backed by huge pages.
|
||||
arenasHugePages bool
|
||||
|
||||
// heapArenaAlloc is pre-reserved space for allocating heapArena
|
||||
// objects. This is only used on 32-bit, where we pre-reserve
|
||||
// this space to avoid interleaving it with the heap itself.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue