diff options
Diffstat (limited to 'src/runtime/malloc.go')
| -rw-r--r-- | src/runtime/malloc.go | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/runtime/malloc.go b/src/runtime/malloc.go index c22c7aa7dc..f2cb6085bc 100644 --- a/src/runtime/malloc.go +++ b/src/runtime/malloc.go @@ -324,6 +324,14 @@ const ( // mallocinit. var physPageSize uintptr +// physHugePageSize is the size in bytes of the OS's default physical huge +// page size whose allocation is opaque to the application. +// +// If set, this must be set by the OS init code (typically in osinit) before +// mallocinit. However, setting it at all is optional, and leaving the default +// value is always safe (though potentially less efficient). +var physHugePageSize uintptr + // OS-defined helpers: // // sysAlloc obtains a large chunk of zeroed memory from the |
