projects
/
ghc-hetmet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
More rules for bootstrapping
[ghc-hetmet.git]
/
rts
/
sm
/
GC.h
diff --git
a/rts/sm/GC.h
b/rts/sm/GC.h
index
92e87d1
..
fb6e385
100644
(file)
--- a/
rts/sm/GC.h
+++ b/
rts/sm/GC.h
@@
-1,6
+1,6
@@
/* -----------------------------------------------------------------------------
*
/* -----------------------------------------------------------------------------
*
- * (c) The GHC Team 1998-2006
+ * (c) The GHC Team 1998-2008
*
* Generational garbage collector
*
*
* Generational garbage collector
*
@@
-28,20
+28,25
@@
extern StgPtr oldgen_scan;
extern long copied;
extern long copied;
+extern rtsBool work_stealing;
+
#ifdef DEBUG
extern nat mutlist_MUTVARS, mutlist_MUTARRS, mutlist_MVARS, mutlist_OTHERS;
#endif
#ifdef DEBUG
extern nat mutlist_MUTVARS, mutlist_MUTARRS, mutlist_MVARS, mutlist_OTHERS;
#endif
-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)
#ifdef THREADED_RTS
extern SpinLock gc_alloc_block_sync;
#endif
#if defined(PROF_SPIN) && defined(THREADED_RTS)
-StgWord64 whitehole_spin;
+extern StgWord64 whitehole_spin;
#endif
#endif
+void gcWorkerThread (Capability *cap);
+void initGcThreads (void);
+void waitForGcThreads (Capability *cap);
+void releaseGCThreads (Capability *cap);
+
#define WORK_UNIT_WORDS 128
#endif /* GC_H */
#define WORK_UNIT_WORDS 128
#endif /* GC_H */