From: Matthew Flatt Date: Wed, 13 Aug 2008 23:08:34 +0000 (+0000) Subject: merge Kevin's work so far on places X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3c26633e7965eb4e6733643d338c779747666577;p=gc merge Kevin's work so far on places svn: r11226 --- diff --git a/Makefile.in b/Makefile.in index dfdb1852..072fbef4 100644 --- a/Makefile.in +++ b/Makefile.in @@ -31,7 +31,7 @@ mainsrcdir = @srcdir@/../.. # compiler options; mainly used to allow importing options OPTIONS=@OPTIONS@ @CGCOPTIONS@ -BASEFLAGS= -I$(srcdir)/include -DNO_SIGNALS @CFLAGS@ @COMPFLAGS@ @PREFLAGS@ +BASEFLAGS= -I$(srcdir)/include -DNO_SIGNALS @CFLAGS@ @COMPFLAGS@ @PREFLAGS@ @PLACE_CGC_FLAGS@ CFLAGS= $(BASEFLAGS) @PROFFLAGS@ $(OPTIONS) -DNO_EXECUTE_PERMISSION -DSILENT -DNO_GETENV -DLARGE_CONFIG -DATOMIC_UNCOLLECTABLE -DINITIAL_MARK_STACK_SIZE=8192 # To build the parallel collector on Linux, add to the above: diff --git a/darwin_stop_world.c b/darwin_stop_world.c index 665e8965..b2814abb 100644 --- a/darwin_stop_world.c +++ b/darwin_stop_world.c @@ -102,15 +102,15 @@ void GC_push_all_stacks() { if(r != KERN_SUCCESS) ABORT("thread_get_state failed"); #if defined(I386) - lo = state.esp; - - GC_push_one(state.eax); - GC_push_one(state.ebx); - GC_push_one(state.ecx); - GC_push_one(state.edx); - GC_push_one(state.edi); - GC_push_one(state.esi); - GC_push_one(state.ebp); + lo = state.__esp; + + GC_push_one(state.__eax); + GC_push_one(state.__ebx); + GC_push_one(state.__ecx); + GC_push_one(state.__edx); + GC_push_one(state.__edi); + GC_push_one(state.__esi); + GC_push_one(state.__ebp); #elif defined(POWERPC) lo = (void*)(state.r1 - PPC_RED_ZONE_SIZE);