From 639fe12a2d5de17920b46129a2385fddd369fa86 Mon Sep 17 00:00:00 2001 From: Ben Gamari Date: Mon, 20 May 2019 22:12:51 -0400 Subject: [PATCH] Revert "XXX: Disable selector optimization and shortcutting" This reverts commit e1df1b1e24c66fc9e391dfa275ec2e0332b698ac. --- rts/sm/Evac.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/rts/sm/Evac.c b/rts/sm/Evac.c index 47265903a1..35e39d283a 100644 --- a/rts/sm/Evac.c +++ b/rts/sm/Evac.c @@ -816,9 +816,6 @@ loop: StgClosure *r; const StgInfoTable *i; r = ((StgInd*)q)->indirectee; - // XXX: disable shortcutting - copy(p,info,q,sizeofW(StgInd),gen_no); - return; if (GET_CLOSURE_TAG(r) == 0) { i = r->header.info; if (IS_FORWARDING_PTR(i)) { @@ -873,8 +870,6 @@ loop: return; case IND: - // XXX: disable shortcutting - copy(p,info,q,sizeofW(StgInd),gen_no); // follow chains of indirections, don't evacuate them q = ((StgInd*)q)->indirectee; *p = q; @@ -1243,9 +1238,6 @@ selector_loop: goto bale_out; } - // XXX: Disable selector optimization - goto bale_out; - info = INFO_PTR_TO_STRUCT(info); switch (info->type) { case WHITEHOLE: -- GitLab