diff options
Diffstat (limited to 'src/runtime/mem_linux.go')
| -rw-r--r-- | src/runtime/mem_linux.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/runtime/mem_linux.go b/src/runtime/mem_linux.go index 1630664cff..96e890eedb 100644 --- a/src/runtime/mem_linux.go +++ b/src/runtime/mem_linux.go @@ -161,6 +161,10 @@ func sysHugePageOS(v unsafe.Pointer, n uintptr) { } } +func sysNoHugePageOS(v unsafe.Pointer, n uintptr) { + madvise(v, n, _MADV_NOHUGEPAGE) +} + // Don't split the stack as this function may be invoked without a valid G, // which prevents us from allocating more stack. // |
