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
func sysHugePageOS(v unsafe.Pointer, n uintptr) {
}
+func sysNoHugePageOS(v unsafe.Pointer, n uintptr) {
+}
+
// Don't split the stack as this function may be invoked without a valid G,
// which prevents us from allocating more stack.
//
func sysHugePageOS(v unsafe.Pointer, n uintptr) {
}
+func sysNoHugePageOS(v unsafe.Pointer, n uintptr) {
+}
+
// Don't split the stack as this function may be invoked without a valid G,
// which prevents us from allocating more stack.
//
func sysHugePageOS(v unsafe.Pointer, n uintptr) {
}
+func sysNoHugePageOS(v unsafe.Pointer, n uintptr) {
+}
+
// Don't split the stack as this function may be invoked without a valid G,
// which prevents us from allocating more stack.
//
}
}
+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.
//
func sysHugePageOS(v unsafe.Pointer, n uintptr) {
}
+func sysNoHugePageOS(v unsafe.Pointer, n uintptr) {
+}
+
func sysMapOS(v unsafe.Pointer, n uintptr) {
}
func sysHugePageOS(v unsafe.Pointer, n uintptr) {
}
+func sysNoHugePageOS(v unsafe.Pointer, n uintptr) {
+}
+
// Don't split the stack as this function may be invoked without a valid G,
// which prevents us from allocating more stack.
//