]> Cypherpunks.ru repositories - gostls13.git/commitdiff
runtime: delete gosave (dead code)
authorRuss Cox <rsc@golang.org>
Mon, 15 Feb 2021 16:26:58 +0000 (11:26 -0500)
committerRuss Cox <rsc@golang.org>
Fri, 19 Feb 2021 00:41:17 +0000 (00:41 +0000)
Change-Id: Ie811526534df8622d89c5b1b81dbe19ece1c962b
Reviewed-on: https://go-review.googlesource.com/c/go/+/292110
Trust: Russ Cox <rsc@golang.org>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/runtime/proc.go
src/runtime/stack.go
src/runtime/stubs.go
src/runtime/sys_wasm.go
src/runtime/sys_x86.go

index ccfe0856910ae1efae038da3f19170ac8fdaf0e9..dbb430fd259db9abcbb492bedea4fc0cbe2ecc48 100644 (file)
@@ -3482,7 +3482,7 @@ func save(pc, sp uintptr) {
 // This is called only from the go syscall library and cgocall,
 // not from the low-level system calls used by the runtime.
 //
-// Entersyscall cannot split the stack: the gosave must
+// Entersyscall cannot split the stack: the save must
 // make g->sched refer to the caller's stack segment, because
 // entersyscall is going to return immediately after.
 //
index 8c90e7b46f0ded125efa8cf717dafe5447eaa13f..d971e5e26f8e544259606e8a73522c2bf0e4afa7 100644 (file)
@@ -1089,7 +1089,7 @@ func nilfunc() {
 }
 
 // adjust Gobuf as if it executed a call to fn
-// and then did an immediate gosave.
+// and then stopped before the first instruction in fn.
 func gostartcallfn(gobuf *gobuf, fv *funcval) {
        var fn unsafe.Pointer
        if fv != nil {
index c0cc95ec65f451a12dda988b502fb6e3b856663e..b9b313a71127cded6b09dee4f13c42fa0d363fb5 100644 (file)
@@ -169,6 +169,7 @@ func noescape(p unsafe.Pointer) unsafe.Pointer {
 // This in turn calls cgocallbackg, which is where we'll find
 // pointer-declared arguments.
 func cgocallback(fn, frame, ctxt uintptr)
+
 func gogo(buf *gobuf)
 
 //go:noescape
index 3ed621f92ebd1adda1c4ebfd092aac866cee3a15..057ed4ccd90a7513ff8211f00a7685d450bfeef5 100644 (file)
@@ -27,7 +27,7 @@ func wasmTruncU()
 func wasmExit(code int32)
 
 // adjust Gobuf as it if executed a call to fn with context ctxt
-// and then did an immediate gosave.
+// and then stopped before the first instruction in fn.
 func gostartcall(buf *gobuf, fn, ctxt unsafe.Pointer) {
        sp := buf.sp
        sp -= sys.PtrSize
index 5b7a66667911883ac898ebc2b8bb580d89c47780..8f21585d28b0f221a26664f693a969a797634e3e 100644 (file)
@@ -12,7 +12,7 @@ import (
 )
 
 // adjust Gobuf as if it executed a call to fn with context ctxt
-// and then did an immediate gosave.
+// and then stopped before the first instruction in fn.
 func gostartcall(buf *gobuf, fn, ctxt unsafe.Pointer) {
        sp := buf.sp
        sp -= sys.PtrSize