diff options
| author | Russ Cox <rsc@golang.org> | 2014-09-08 21:02:36 -0400 |
|---|---|---|
| committer | Russ Cox <rsc@golang.org> | 2014-09-08 21:02:36 -0400 |
| commit | 0f99a91bb56dd01dfd4e5ce4344e6006e3463ade (patch) | |
| tree | ee9114e1fac7f70c0e910fcc425e9a9b4b8e47e7 /src/runtime/runtime.h | |
| parent | c93f74d34bf45bcbfa1cfda5ccd198ed5682ddf4 (diff) | |
| download | go-0f99a91bb56dd01dfd4e5ce4344e6006e3463ade.tar.xz | |
runtime: let stack copier update Panic structs for us
It already is updating parts of them; we're just getting lucky
retraversing them and not finding much to do.
Change argp to a pointer so that it will be updated too.
Existing tests break if you apply the change to adjustpanics
without also updating the type of argp.
LGTM=khr
R=khr
CC=golang-codereviews
https://golang.org/cl/139380043
Diffstat (limited to 'src/runtime/runtime.h')
| -rw-r--r-- | src/runtime/runtime.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/runtime/runtime.h b/src/runtime/runtime.h index e6db8cb836..9584c5dfcc 100644 --- a/src/runtime/runtime.h +++ b/src/runtime/runtime.h @@ -653,7 +653,7 @@ struct Defer */ struct Panic { - uintptr argp; // pointer to arguments of deferred call run during panic; cannot move - known to liblink + void* argp; // pointer to arguments of deferred call run during panic; cannot move - known to liblink Eface arg; // argument to panic Panic* link; // link to earlier panic Defer* defer; // current executing defer |
