aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/mem.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/runtime/mem.go')
-rw-r--r--src/runtime/mem.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/runtime/mem.go b/src/runtime/mem.go
index 0ca933b25b..7b01905224 100644
--- a/src/runtime/mem.go
+++ b/src/runtime/mem.go
@@ -84,6 +84,13 @@ func sysHugePage(v unsafe.Pointer, n uintptr) {
sysHugePageOS(v, n)
}
+// sysNoHugePage does not transition memory regions, but instead provides a
+// hint to the OS that it would be less efficient to back this memory region
+// with pages of a larger size transparently.
+func sysNoHugePage(v unsafe.Pointer, n uintptr) {
+ sysNoHugePageOS(v, n)
+}
+
// sysFree transitions a memory region from any state to None. Therefore, it
// returns memory unconditionally. It is used if an out-of-memory error has been
// detected midway through an allocation or to carve out an aligned section of