X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=rts%2Fsm%2FScav.h;h=ad466c8488866e30137e8ff00bed90b9cfbb4c9a;hb=6cf8982ac30be6836a0cdd8be5a6ac1a1a144213;hp=010a81013c86facbc1b2041fdfbf8e62a661783b;hpb=ab0e778ccfde61aed4c22679b24d175fc6cc9bf3;p=ghc-hetmet.git diff --git a/rts/sm/Scav.h b/rts/sm/Scav.h index 010a810..ad466c8 100644 --- a/rts/sm/Scav.h +++ b/rts/sm/Scav.h @@ -1,13 +1,32 @@ /* ----------------------------------------------------------------------------- * - * (c) The GHC Team 1998-2006 + * (c) The GHC Team 1998-2008 * * Generational garbage collector: scavenging functions * + * 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 + * * ---------------------------------------------------------------------------*/ -void scavenge ( step * ); -void scavenge_mark_stack ( void ); -void scavenge_large ( step * ); -void scavenge_static ( void ); -void scavenge_mutable_list ( generation *g ); +#ifndef SM_SCAV_H +#define SM_SCAV_H + +BEGIN_RTS_PRIVATE + +void scavenge_loop (void); +void scavenge_mutable_list (bdescr *bd, generation *gen); +void scavenge_capability_mut_lists (Capability *cap); + +#ifdef THREADED_RTS +void scavenge_loop1 (void); +void scavenge_mutable_list1 (bdescr *bd, generation *gen); +void scavenge_capability_mut_Lists1 (Capability *cap); +#endif + +END_RTS_PRIVATE + +#endif /* SM_SCAV_H */ +