summaryrefslogtreecommitdiff
path: root/rts/ThreadPaused.c
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2019-04-17 18:48:38 -0400
committerBen Gamari <ben@smart-cactus.org>2019-04-17 19:50:30 -0400
commit90e0ece0f88d13cf703cc2831f7f9b772b81b4ed (patch)
treec8e4ce4e2021bc535dffbd20ae1393bd2fe71b60 /rts/ThreadPaused.c
parent45662404780b4968b5308ad969e233ffeb175c9a (diff)
downloadhaskell-wip/gc/ben.tar.gz
Remove redundant write barrier checks and fix predictionwip/gc/ben
Diffstat (limited to 'rts/ThreadPaused.c')
-rw-r--r--rts/ThreadPaused.c4
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.