]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: remove stale comment about getcallerpc/sp
authorCherry Zhang <cherryyz@google.com>
Thu, 26 Apr 2018 20:41:53 +0000 (16:41 -0400)
committerCherry Zhang <cherryyz@google.com>
Thu, 26 Apr 2018 22:06:33 +0000 (22:06 +0000)
Getcallerpc/sp no longer takes argument.

Change-Id: I80b30020e798990c59c8ffd0a4e078af6a75aea0
Reviewed-on: https://go-review.googlesource.com/109696
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/runtime/stubs.go

index d1cdf5fa5d94f0a9a80524507548d0e23c5f3ede..a37d3c39d5197e45ba9c1eedf7340730b477d402 100644 (file)
@@ -213,10 +213,7 @@ func publicationBarrier()
 // the call to f (where f will return).
 //
 // The call to getcallerpc and getcallersp must be done in the
-// frame being asked about. It would not be correct for f to pass &arg1
-// to another function g and let g call getcallerpc/getcallersp.
-// The call inside g might return information about g's caller or
-// information about f's caller or complete garbage.
+// frame being asked about.
 //
 // The result of getcallersp is correct at the time of the return,
 // but it may be invalidated by any subsequent call to a function