mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
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>
This commit is contained in:
parent
77eff30ec0
commit
53d6a725f8
1 changed files with 1 additions and 1 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue