diff options
author | Ben Gamari <ben@smart-cactus.org> | 2020-10-24 20:37:52 -0400 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2020-11-01 08:52:44 -0500 |
commit | e63db32c7eb089985a1a7279a0a886a32d70ac0e (patch) | |
tree | 643a9740cb21021d7c3ac9859792205ef69555a5 | |
parent | ce1bb9959e2465db1c3880f3c532ae7e1be39b41 (diff) | |
download | haskell-e63db32c7eb089985a1a7279a0a886a32d70ac0e.tar.gz |
Scav: Use bd->gen_no instead of bd->gen->no
This potentially saves a cache miss per scavenge.
-rw-r--r-- | rts/sm/Scav.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |