]> Cypherpunks repositories - gostls13.git/commit
Revert "Revert "cmd/compile,runtime: allocate defer records on the stack""
authorKeith Randall <khr@golang.org>
Sat, 8 Jun 2019 17:20:57 +0000 (17:20 +0000)
committerKeith Randall <khr@golang.org>
Mon, 10 Jun 2019 16:19:39 +0000 (16:19 +0000)
commit8f296f59de0703b0559474beb434a265e277bdca
tree4ffd97168a989aa958ef2055f07759f29a09210b
parentdaf944a531fecf2431b60da608e70680f4927412
Revert "Revert "cmd/compile,runtime: allocate defer records on the stack""

This reverts CL 180761

Reason for revert: Reinstate the stack-allocated defer CL.

There was nothing wrong with the CL proper, but stack allocation of defers exposed two other issues.

Issue #32477: Fix has been submitted as CL 181258.
Issue #32498: Possible fix is CL 181377 (not submitted yet).

Change-Id: I32b3365d5026600069291b068bbba6cb15295eb3
Reviewed-on: https://go-review.googlesource.com/c/go/+/181378
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
15 files changed:
src/cmd/compile/internal/gc/esc.go
src/cmd/compile/internal/gc/escape.go
src/cmd/compile/internal/gc/go.go
src/cmd/compile/internal/gc/reflect.go
src/cmd/compile/internal/gc/ssa.go
src/runtime/mgcmark.go
src/runtime/panic.go
src/runtime/runtime2.go
src/runtime/stack.go
src/runtime/stack_test.go
src/runtime/stubs.go
src/runtime/syscall_windows.go
src/runtime/traceback.go
test/codegen/stack.go
test/live.go