From e63db32c7eb089985a1a7279a0a886a32d70ac0e Mon Sep 17 00:00:00 2001 From: Ben Gamari Date: Sat, 24 Oct 2020 20:37:52 -0400 Subject: Scav: Use bd->gen_no instead of bd->gen->no This potentially saves a cache miss per scavenge. --- rts/sm/Scav.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'rts') diff --git a/rts/sm/Scav.c b/rts/sm/Scav.c index dd9a96adf8..869e6b4dc8 100644 --- a/rts/sm/Scav.c +++ b/rts/sm/Scav.c @@ -435,7 +435,7 @@ scavenge_block (bdescr *bd) saved_eager_promotion = gct->eager_promotion; gct->failed_to_evac = false; - ws = &gct->gens[bd->gen->no]; + ws = &gct->gens[bd->gen_no]; p = bd->u.scan; -- cgit v1.2.1