summaryrefslogtreecommitdiff
path: root/src/runtime/mem_bsd.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/runtime/mem_bsd.go')
-rw-r--r--src/runtime/mem_bsd.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/runtime/mem_bsd.go b/src/runtime/mem_bsd.go
index e9be5ec8c9..c868977f86 100644
--- a/src/runtime/mem_bsd.go
+++ b/src/runtime/mem_bsd.go
@@ -69,20 +69,20 @@ func sysMap(v unsafe.Pointer, n uintptr, reserved bool, stat *uint64) {
}
p := mmap(v, n, _PROT_READ|_PROT_WRITE, flags, -1, 0)
if uintptr(p) == _ENOMEM {
- gothrow("runtime: out of memory")
+ throw("runtime: out of memory")
}
if p != v {
print("runtime: address space conflict: map(", v, ") = ", p, "\n")
- gothrow("runtime: address space conflict")
+ throw("runtime: address space conflict")
}
return
}
p := mmap(v, n, _PROT_READ|_PROT_WRITE, _MAP_ANON|_MAP_FIXED|_MAP_PRIVATE, -1, 0)
if uintptr(p) == _ENOMEM {
- gothrow("runtime: out of memory")
+ throw("runtime: out of memory")
}
if p != v {
- gothrow("runtime: cannot map pages in arena address space")
+ throw("runtime: cannot map pages in arena address space")
}
}