1
0
mirror of https://github.com/golang/go synced 2024-11-26 17:56:55 -07:00

runtime: fix unworkable comments for go:nosplit

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>
This commit is contained in:
Hajime Hoshi 2021-11-05 23:50:55 +09:00
parent 02d7eab527
commit e984240d31
2 changed files with 2 additions and 2 deletions

View File

@ -156,7 +156,7 @@ func pthread_kill_trampoline()
// mmap is used to do low-level memory allocation via mmap. Don't allow stack // 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 // 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. // 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) { func mmap(addr unsafe.Pointer, n uintptr, prot, flags, fd int32, off uint32) (unsafe.Pointer, int) {
args := struct { args := struct {
addr unsafe.Pointer addr unsafe.Pointer

View File

@ -45,7 +45,7 @@ func thrkill_trampoline()
// mmap is used to do low-level memory allocation via mmap. Don't allow stack // 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 // 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. // 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) { func mmap(addr unsafe.Pointer, n uintptr, prot, flags, fd int32, off uint32) (unsafe.Pointer, int) {
args := struct { args := struct {
addr unsafe.Pointer addr unsafe.Pointer