From 0f99a91bb56dd01dfd4e5ce4344e6006e3463ade Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Mon, 8 Sep 2014 21:02:36 -0400 Subject: 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 --- src/runtime/runtime.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/runtime/runtime.h') 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 -- cgit v1.3