1
0
mirror of https://github.com/golang/go synced 2024-11-25 07:07:57 -07:00

add 64 bytes padding to seperate the data into different cacheline to fix HITM issue across CPU sockets

This commit is contained in:
Heyuan Liu 2021-09-08 10:49:19 +08:00
parent bab79dd362
commit d08c3987b6

View File

@ -134,6 +134,9 @@ type mheap struct {
// This is accessed atomically.
reclaimCredit uintptr
//add 64 bytes padding to seperate the data into different cacheline to fix HITM issue across CPU sockets
_ [8]uint64
// arenas is the heap arena map. It points to the metadata for
// the heap for every arena frame of the entire usable virtual
// address space.