diff options
| author | Russ Cox <rsc@golang.org> | 2014-09-05 16:51:45 -0400 |
|---|---|---|
| committer | Russ Cox <rsc@golang.org> | 2014-09-05 16:51:45 -0400 |
| commit | f8f630f5ecb5e30c9feadab5277f393c58da71f6 (patch) | |
| tree | aa4b7ec09ae38d6fff0c7c0e9e85cccfc6b5a96c /src/pkg/runtime/malloc.go | |
| parent | fcbe51c9e3ecbb1cb5d8d50f64b0bc42a6a0c7f5 (diff) | |
| download | go-f8f630f5ecb5e30c9feadab5277f393c58da71f6.tar.xz | |
runtime: use reflect.call during panic instead of newstackcall
newstackcall creates a new stack segment, and we want to
be able to throw away all that code.
LGTM=khr
R=khr, iant
CC=dvyukov, golang-codereviews, r
https://golang.org/cl/139270043
Diffstat (limited to 'src/pkg/runtime/malloc.go')
| -rw-r--r-- | src/pkg/runtime/malloc.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pkg/runtime/malloc.go b/src/pkg/runtime/malloc.go index 883ca0cef7..664b03b151 100644 --- a/src/pkg/runtime/malloc.go +++ b/src/pkg/runtime/malloc.go @@ -743,7 +743,7 @@ func runfinq() { default: gothrow("bad kind in runfinq") } - reflectcall(unsafe.Pointer(f.fn), frame, uint32(framesz), uint32(framesz)) + reflectcall(unsafe.Pointer(f.fn), frame, uint32(framesz), uint32(framesz), nil) // drop finalizer queue references to finalized object f.fn = nil |
