25 lines
762 B
Plaintext
25 lines
762 B
Plaintext
$OpenBSD: patch-src_runtime_mem_plan9_go,v 1.1 2018/04/05 18:38:38 jsing Exp $
|
|
|
|
Index: src/runtime/mem_plan9.go
|
|
--- src/runtime/mem_plan9.go.orig
|
|
+++ src/runtime/mem_plan9.go
|
|
@@ -146,6 +146,18 @@ func sysAlloc(n uintptr, sysStat *uint64) unsafe.Point
|
|
return p
|
|
}
|
|
|
|
+// Don't split the stack as this method may be invoked without a valid G, which
|
|
+// prevents us from allocating more stack.
|
|
+//go:nosplit
|
|
+func sysMarkStack(v unsafe.Pointer, n uintptr) {
|
|
+}
|
|
+
|
|
+// Don't split the stack as this method may be invoked without a valid G, which
|
|
+// prevents us from allocating more stack.
|
|
+//go:nosplit
|
|
+func sysUnmarkStack(v unsafe.Pointer, n uintptr) {
|
|
+}
|
|
+
|
|
func sysFree(v unsafe.Pointer, n uintptr, sysStat *uint64) {
|
|
mSysStatDec(sysStat, n)
|
|
lock(&memlock)
|