summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2019-12-16 21:29:04 +0000
committerBen Gamari <ben@smart-cactus.org>2019-12-21 17:54:27 -0500
commit12c18155f6a11afe4d1d4e88f6605818276e3a92 (patch)
tree3e08241cac952be91db666c620b5a30992e9e7bd
parent0c9a91255da4ac62d914bb399a141ac857851a10 (diff)
downloadhaskell-wip/bdescr/predict-not-taken.tar.gz
rts/Updates: Set prediction of stg_upd_frame_info branchwip/bdescr/predict-not-taken
This is a very important branch yet it didn't have any prediction set. We predict the updated thunk to live in the young generation since this is how the original code predicted.
-rw-r--r--rts/Updates.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/rts/Updates.h b/rts/Updates.h
index 91d1b0b1cb..029e43f808 100644
--- a/rts/Updates.h
+++ b/rts/Updates.h
@@ -58,7 +58,7 @@
SET_INFO(p1, stg_BLACKHOLE_info); \
LDV_RECORD_CREATE(p1); \
bd = Bdescr(p1); \
- if (bdescr_gen_no(bd) != 0 :: bits16) { \
+ if (bdescr_gen_no(bd) != 0 :: bits16) (likely: False) { \
recordMutableCap(p1, TO_W_(bdescr_gen_no(bd))); \
TICK_UPD_OLD_IND(); \
and_then; \