summaryrefslogtreecommitdiff
path: root/rts/sm/MarkWeak.h
blob: 2756cb06e2be9c2e977533b3902475d02976ca68 (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://ghc.haskell.org/trac/ghc/wiki/Commentary/Rts/Storage/GC
 *
 * ---------------------------------------------------------------------------*/

#pragma once

#include "BeginPrivate.h"

extern StgTSO *resurrected_threads;

void    collectFreshWeakPtrs   ( void );
void    initWeakForGC          ( void );
bool    traverseWeakPtrList    ( StgWeak **dead_weak_ptr_list, StgTSO **resurrected_threads );
void    markWeakPtrList        ( void );
void    scavengeLiveWeak       ( StgWeak * );

#include "EndPrivate.h"