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