diff options
Diffstat (limited to 'rts/include/rts/storage/ClosureMacros.h')
-rw-r--r-- | rts/include/rts/storage/ClosureMacros.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/rts/include/rts/storage/ClosureMacros.h b/rts/include/rts/storage/ClosureMacros.h index e005dc5f78..af4d13a198 100644 --- a/rts/include/rts/storage/ClosureMacros.h +++ b/rts/include/rts/storage/ClosureMacros.h @@ -535,9 +535,8 @@ zeroSlop (StgClosure *p, #endif ; - const bool can_zero_immutable_slop = - // Only if we're running single threaded. - RTS_DEREF(RtsFlags).ParFlags.nCapabilities <= 1; + // Only if we're running single threaded. + const bool can_zero_immutable_slop = getNumCapabilities() == 1; const bool zero_slop_immutable = want_to_zero_immutable_slop && can_zero_immutable_slop; |