diff options
author | ian <ian@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-05-22 16:57:23 +0000 |
---|---|---|
committer | ian <ian@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-05-22 16:57:23 +0000 |
commit | 2fb62959965d4fcb138db18c5c6e20b99edb0bfe (patch) | |
tree | 4519e817522fc93f7bdd2860a46165fd4ab038c5 /libgo/runtime/runtime.h | |
parent | c93570ad9b8a36a59f9452dd7a785f230fce96d2 (diff) | |
download | gcc-2fb62959965d4fcb138db18c5c6e20b99edb0bfe.tar.gz |
runtime: Use getcontext, not setjmp, to save regs for GC.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@187777 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgo/runtime/runtime.h')
-rw-r--r-- | libgo/runtime/runtime.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libgo/runtime/runtime.h b/libgo/runtime/runtime.h index 91044184b1f..67dabd26b14 100644 --- a/libgo/runtime/runtime.h +++ b/libgo/runtime/runtime.h @@ -7,7 +7,6 @@ #include "config.h" #include "go-assert.h" -#include <setjmp.h> #include <signal.h> #include <stdio.h> #include <stdlib.h> @@ -128,7 +127,7 @@ struct G void* gcnext_segment; void* gcnext_sp; void* gcinitial_sp; - jmp_buf gcregs; + ucontext_t gcregs; byte* entry; // initial function G* alllink; // on allg void* param; // passed parameter on wakeup |