fprintf(stderr, "Scav StkO: 0x%lx\n", \
Scav)
-# ifdef PAR
+# if defined(PAR) || defined(GRAN)
# define DEBUG_SCAV_RBH(s,p) \
if (RTSflags.GcFlags.trace & DEBUG_TRACE_CONCURRENT) \
fprintf(stderr, "Scav RBH: 0x%lx, info 0x%lx, size %ld, ptrs %ld\n", \
# define DEBUG_SCAV_BQ
# define DEBUG_SCAV_TSO
# define DEBUG_SCAV_STKO
-# ifdef PAR
+# if defined(PAR) || defined(GRAN)
# define DEBUG_SCAV_RBH(s,p)
# define DEBUG_SCAV_BF
# endif
\begin{code}
-#ifdef PAR
+#if defined(PAR) || defined(GRAN)
# if defined(GCgn)
\begin{code}
#ifndef PAR
-/*** Malloc POINTER -- NOTHING TO SCAVENGE ***/
+/*** Foreign Object -- NOTHING TO SCAVENGE ***/
-/* (The MallocPtrList is updated at the end of GC and any unevacuated
- MallocPtrs reported to C World) [ADR]
+/* (The ForeignObjList is updated at the end of GC and any unevacuated
+ ForeignObjs are finalised) [ADR][SOF]
*/
void
-_Scavenge_MallocPtr(STG_NO_ARGS)
+_Scavenge_ForeignObj(STG_NO_ARGS)
{
- I_ size = MallocPtr_SIZE;
+ I_ size = ForeignObj_SIZE;
DEBUG_SCAV(size,0);
PROFILE_CLOSURE(Scav,size);
NEXT_Scav(size);
\begin{code}
-#ifdef PAR
+#if defined(PAR) || defined(GRAN)
void
_Scavenge_RBH_N(STG_NO_ARGS)