diff options
| author | Russ Cox <rsc@golang.org> | 2014-09-12 07:29:19 -0400 |
|---|---|---|
| committer | Russ Cox <rsc@golang.org> | 2014-09-12 07:29:19 -0400 |
| commit | f0d44dbeaf28d157f8eba85ec9f9bffdc84ce3e0 (patch) | |
| tree | 60896b9b1303b7ad3eb305568cb63d5e26cac032 /src/runtime/malloc.h | |
| parent | 70f928698b8416efa544029cfa0f0f7178cdd51b (diff) | |
| download | go-f0d44dbeaf28d157f8eba85ec9f9bffdc84ce3e0.tar.xz | |
runtime: look up arg stackmap for makeFuncStub/methodValueStub during traceback
makeFuncStub and methodValueStub are used by reflect as
generic function implementations. Each call might have
different arguments. Extract those arguments from the
closure data instead of assuming it is the same each time.
Because the argument map is now being extracted from the
function itself, we don't need the special cases in reflect.Call
anymore, so delete those.
Fixes an occasional crash seen when stack copying does
not update makeFuncStub's arguments correctly.
Will also help make it safe to require stack maps in the
garbage collector.
Derived from CL 142000044 by khr.
LGTM=khr
R=khr
CC=golang-codereviews
https://golang.org/cl/143890044
Diffstat (limited to 'src/runtime/malloc.h')
| -rw-r--r-- | src/runtime/malloc.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/runtime/malloc.h b/src/runtime/malloc.h index 5441691940..b6856768db 100644 --- a/src/runtime/malloc.h +++ b/src/runtime/malloc.h @@ -586,7 +586,6 @@ void runtime·queuefinalizer(byte *p, FuncVal *fn, uintptr nret, Type *fint, Ptr bool runtime·freespecial(Special *s, void *p, uintptr size, bool freed); // Information from the compiler about the layout of stack frames. -typedef struct BitVector BitVector; struct BitVector { int32 n; // # of bits |
