]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: update _defer comment to not mention freedefer
authorIan Lance Taylor <iant@golang.org>
Wed, 2 Feb 2022 03:32:08 +0000 (19:32 -0800)
committerIan Lance Taylor <iant@golang.org>
Wed, 2 Feb 2022 21:12:39 +0000 (21:12 +0000)
CL 339669 changed freedefer to not mention every field of _defer,
so no need to call it out in the _defer comment.

Change-Id: Id8b67ba2298685f609bf901b5948fd30666bd6e3
Reviewed-on: https://go-review.googlesource.com/c/go/+/382251
Trust: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Austin Clements <austin@google.com>
src/runtime/runtime2.go

index d0b7a162d59094b1ec36319e30884b457447bb6b..3eada37840f0579a9fbb4759cb14caf8ccfcf245 100644 (file)
@@ -941,7 +941,7 @@ func extendRandom(r []byte, n int) {
 }
 
 // A _defer holds an entry on the list of deferred calls.
-// If you add a field here, add code to clear it in freedefer and deferProcStack
+// If you add a field here, add code to clear it in deferProcStack.
 // This struct must match the code in cmd/compile/internal/ssagen/ssa.go:deferstruct
 // and cmd/compile/internal/ssagen/ssa.go:(*state).call.
 // Some defers will be allocated on the stack and some on the heap.