RTS tidyup sweep, first phase
[ghc-hetmet.git] / rts / sm / MarkWeak.h
1 /* -----------------------------------------------------------------------------
2  *
3  * (c) The GHC Team 1998-2008
4  *
5  * Weak pointers and weak-like things in the GC
6  *
7  * Documentation on the architecture of the Garbage Collector can be
8  * found in the online commentary:
9  * 
10  *   http://hackage.haskell.org/trac/ghc/wiki/Commentary/Rts/Storage/GC
11  *
12  * ---------------------------------------------------------------------------*/
13
14 #ifndef SM_MARKWEAK_H
15 #define SM_MARKWEAK_H
16
17 extern StgWeak *old_weak_ptr_list;
18 extern StgTSO *resurrected_threads;
19 extern StgTSO *exception_threads;
20
21 void    initWeakForGC          ( void );
22 rtsBool traverseWeakPtrList    ( void );
23 void    markWeakPtrList        ( void );
24 rtsBool traverseBlackholeQueue ( void );
25
26 #endif /* SM_MARKWEAK_H */