aboutsummaryrefslogtreecommitdiff
path: root/src/runtime
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@golang.org>2022-02-01 19:32:08 -0800
committerIan Lance Taylor <iant@golang.org>2022-02-02 21:12:39 +0000
commit53d6a725f85b9b688a02bbf40cd8961c78bf0b91 (patch)
tree03c89b89f3dbb639fa540d4cf30ae4eeaea8b6cc /src/runtime
parent77eff30ec0bc63df61ea742bb8278f92e2c133dc (diff)
downloadgo-53d6a725f85b9b688a02bbf40cd8961c78bf0b91.tar.xz
runtime: update _defer comment to not mention freedefer
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>
Diffstat (limited to 'src/runtime')
-rw-r--r--src/runtime/runtime2.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/runtime/runtime2.go b/src/runtime/runtime2.go
index d0b7a162d5..3eada37840 100644
--- a/src/runtime/runtime2.go
+++ b/src/runtime/runtime2.go
@@ -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.