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:
parent
02d7eab527
commit
e984240d31
@ -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
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user