static void scheduleHandleThreadBlocked( StgTSO *t );
static rtsBool scheduleHandleThreadFinished( StgMainThread *mainThread,
Capability *cap, StgTSO *t );
-static rtsBool scheduleDoHeapProfile(void);
+static rtsBool scheduleDoHeapProfile(rtsBool ready_to_gc);
static void scheduleDoGC(Capability *cap);
static void unblockThread(StgTSO *tso);
barf("schedule: invalid thread return code %d", (int)ret);
}
- if (scheduleDoHeapProfile()) { ready_to_gc = rtsFalse; }
+ if (scheduleDoHeapProfile(ready_to_gc)) { ready_to_gc = rtsFalse; }
if (ready_to_gc) { scheduleDoGC(cap); }
} /* end of while() */
* -------------------------------------------------------------------------- */
static rtsBool
-scheduleDoHeapProfile(void)
+scheduleDoHeapProfile( rtsBool ready_to_gc STG_UNUSED )
{
#if defined(PROFILING)
// When we have +RTS -i0 and we're heap profiling, do a census at
* -------------------------------------------------------------------------- */
static void
-scheduleDoGC( Capability *cap )
+scheduleDoGC( Capability *cap STG_UNUSED )
{
StgTSO *t;
#ifdef SMP