From: Ian Lance Taylor Date: Wed, 2 Feb 2022 03:32:08 +0000 (-0800) Subject: runtime: update _defer comment to not mention freedefer X-Git-Tag: go1.18rc1~124 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=53d6a725f85b9b688a02bbf40cd8961c78bf0b91;p=gostls13.git 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 Run-TryBot: Ian Lance Taylor TryBot-Result: Gopher Robot Reviewed-by: Austin Clements --- 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.