diff options
Diffstat (limited to 'rts/ThreadPaused.c')
-rw-r--r-- | rts/ThreadPaused.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/rts/ThreadPaused.c b/rts/ThreadPaused.c index aa76f5ed0e..4b24362442 100644 --- a/rts/ThreadPaused.c +++ b/rts/ThreadPaused.c @@ -330,8 +330,8 @@ threadPaused(Capability *cap, StgTSO *tso) } #endif - if (nonmoving_write_barrier_enabled - && ip_THUNK(INFO_PTR_TO_STRUCT(bh_info))) { + if (RTS_UNLIKELY(nonmoving_write_barrier_enabled + && ip_THUNK(INFO_PTR_TO_STRUCT(bh_info)))) { // We are about to replace a thunk with a blackhole. // Add the free variables of the closure we are about to // overwrite to the update remembered set. |