diff options
| author | Ben Gamari <ben@smart-cactus.org> | 2020-10-24 20:37:52 -0400 |
|---|---|---|
| committer | Ben Gamari <ben@smart-cactus.org> | 2020-10-25 11:09:56 -0400 |
| commit | c54d7e903540dd86fa64a9e235f4161f91e490af (patch) | |
| tree | dc2466f08135a33e118bba4089e9133d72db14cd | |
| parent | cf3c3bcd93b3a515f3c2db81b5a7c42af480c9b6 (diff) | |
| download | haskell-wip/gc-gen-no.tar.gz | |
Scav: Use bd->gen_no instead of bd->gen->nowip/gc-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; |
