EventLog: Factor out ensureRoomFor*Event
[ghc.git] / rts / sm / Scav.h
1 /* -----------------------------------------------------------------------------
2 *
3 * (c) The GHC Team 1998-2008
4 *
5 * Generational garbage collector: scavenging functions
6 *
7 * Documentation on the architecture of the Garbage Collector can be
8 * found in the online commentary:
9 *
10 * http://ghc.haskell.org/trac/ghc/wiki/Commentary/Rts/Storage/GC
11 *
12 * ---------------------------------------------------------------------------*/
13
14 #ifndef SM_SCAV_H
15 #define SM_SCAV_H
16
17 #include "BeginPrivate.h"
18
19 void scavenge_loop (void);
20 void scavenge_mutable_list (bdescr *bd, generation *gen);
21 void scavenge_capability_mut_lists (Capability *cap);
22
23 #ifdef THREADED_RTS
24 void scavenge_loop1 (void);
25 void scavenge_mutable_list1 (bdescr *bd, generation *gen);
26 void scavenge_capability_mut_Lists1 (Capability *cap);
27 #endif
28
29 #include "EndPrivate.h"
30
31 #endif /* SM_SCAV_H */
32