X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=rts%2Fsm%2FGC.h;h=01c6024266c195bd6e2142c95f0fb04fe3bd141d;hb=4c394999264d602f10e7623cefa7588423c4f68b;hp=58aa46f373921d85226aaeb2cfdafb3d1fb9e537;hpb=5244f537d12bdb5e016ce7b04e9181b364e5cb27;p=ghc-hetmet.git diff --git a/rts/sm/GC.h b/rts/sm/GC.h index 58aa46f..01c6024 100644 --- a/rts/sm/GC.h +++ b/rts/sm/GC.h @@ -120,6 +120,9 @@ typedef struct gc_thread_ { // during GC without accessing the block // allocators spin lock. + StgClosure* static_objects; // live static objects + StgClosure* scavenged_static_objects; // static objects scavenged so far + lnat gc_count; // number of gc's this thread has done // -------------------- @@ -174,9 +177,6 @@ extern gc_thread **gc_threads; register gc_thread *gct __asm__("%rbx"); // extern gc_thread *gct; // this thread's gct TODO: make thread-local -extern StgClosure* static_objects; -extern StgClosure* scavenged_static_objects; - extern bdescr *mark_stack_bdescr; extern StgPtr *mark_stack; extern StgPtr *mark_sp; @@ -188,10 +188,6 @@ extern StgPtr oldgen_scan; extern long copied; -#ifdef THREADED_RTS -extern SpinLock static_objects_sync; -#endif - #ifdef DEBUG extern nat mutlist_MUTVARS, mutlist_MUTARRS, mutlist_MVARS, mutlist_OTHERS; #endif