/* -----------------------------------------------------------------------------
*
- * (c) The GHC Team 1998-2006
+ * (c) The GHC Team 1998-2008
*
* Generational garbage collector
*
extern nat N;
extern rtsBool major_gc;
-extern nat evac_gen;
-extern rtsBool eager_promotion;
-extern rtsBool failed_to_evac;
-
-extern StgClosure* static_objects;
-extern StgClosure* scavenged_static_objects;
extern bdescr *mark_stack_bdescr;
extern StgPtr *mark_stack;
extern bdescr *oldgen_scan_bd;
extern StgPtr oldgen_scan;
-extern lnat new_blocks; // blocks allocated during this GC
-extern lnat new_scavd_blocks; // ditto, but depth-first blocks
+extern long copied;
#ifdef DEBUG
extern nat mutlist_MUTVARS, mutlist_MUTARRS, mutlist_MVARS, mutlist_OTHERS;
#endif
-StgClosure * isAlive(StgClosure *p);
+extern void markSomeCapabilities (evac_fn evac, void *user, nat i0, nat delta);
+
+#ifdef THREADED_RTS
+extern SpinLock gc_alloc_block_sync;
+#endif
+
+#if defined(PROF_SPIN) && defined(THREADED_RTS)
+extern StgWord64 whitehole_spin;
+#endif
+
+#define WORK_UNIT_WORDS 128
#endif /* GC_H */