]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: fix unworkable comments for go:nosplit
authorHajime Hoshi <hajimehoshi@gmail.com>
Fri, 5 Nov 2021 14:50:55 +0000 (23:50 +0900)
committerHajime Hoshi <hajimehoshi@gmail.com>
Wed, 10 Nov 2021 02:57:43 +0000 (02:57 +0000)
Change-Id: I71c29a2dc7e5b2b6bc35093535228d2907b16b47
Reviewed-on: https://go-review.googlesource.com/c/go/+/361595
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Trust: Hajime Hoshi <hajimehoshi@gmail.com>

src/runtime/sys_darwin.go
src/runtime/sys_openbsd2.go

index 0f91685d6ca14d18433959f511ac18259273be1c..9af4cf18f8d97ba311b4d949c8ab35b967fb45cb 100644 (file)
@@ -156,7 +156,7 @@ func pthread_kill_trampoline()
 // mmap is used to do low-level memory allocation via mmap. Don't allow stack
 // splits, since this function (used by sysAlloc) is called in a lot of low-level
 // parts of the runtime and callers often assume it won't acquire any locks.
-// go:nosplit
+//go:nosplit
 func mmap(addr unsafe.Pointer, n uintptr, prot, flags, fd int32, off uint32) (unsafe.Pointer, int) {
        args := struct {
                addr            unsafe.Pointer
index 7024cfa86d22fd5b72a72989e405a61e4a02138e..c936fbb494af239885a0912564651649f8f190c5 100644 (file)
@@ -45,7 +45,7 @@ func thrkill_trampoline()
 // mmap is used to do low-level memory allocation via mmap. Don't allow stack
 // splits, since this function (used by sysAlloc) is called in a lot of low-level
 // parts of the runtime and callers often assume it won't acquire any locks.
-// go:nosplit
+//go:nosplit
 func mmap(addr unsafe.Pointer, n uintptr, prot, flags, fd int32, off uint32) (unsafe.Pointer, int) {
        args := struct {
                addr            unsafe.Pointer