1 /* -----------------------------------------------------------------------------
3 * (c) The GHC Team, 1998-2004
5 * Stable Pointers: A stable pointer is represented as an index into
6 * the stable pointer table.
8 * StgStablePtr used to be a synonym for StgWord, but stable pointers
9 * are guaranteed to be void* on the C-side, so we have to do some
10 * occasional casting. Size is not a matter, because StgWord is always
11 * the same size as a void*.
13 * ---------------------------------------------------------------------------*/
18 #include "sm/GC.h" // for evac_fn below
20 #include "BeginPrivate.h"
22 void freeStablePtr ( StgStablePtr sp );
24 void initStablePtrTable ( void );
25 void exitStablePtrTable ( void );
26 StgWord lookupStableName ( StgPtr p );
28 void markStablePtrTable ( evac_fn evac, void *user );
29 void threadStablePtrTable ( evac_fn evac, void *user );
30 void gcStablePtrTable ( void );
31 void updateStablePtrTable ( rtsBool full );
33 void stablePtrPreGC ( void );
34 void stablePtrPostGC ( void );
36 #include "EndPrivate.h"