[Git][ghc/ghc][wip/gc-gen-no] Scav: Use bd->gen_no instead of bd->gen->no

Ben Gamari gitlab at gitlab.haskell.org
Sun Oct 25 15:10:03 UTC 2020



Ben Gamari pushed to branch wip/gc-gen-no at Glasgow Haskell Compiler / GHC


Commits:
c54d7e90 by Ben Gamari at 2020-10-25T11:09:56-04:00
Scav: Use bd->gen_no instead of bd->gen->no

This potentially saves a cache miss per scavenge.

- - - - -


1 changed file:

- rts/sm/Scav.c


Changes:

=====================================
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;
 



View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/c54d7e903540dd86fa64a9e235f4161f91e490af

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/c54d7e903540dd86fa64a9e235f4161f91e490af
You're receiving this email because of your account on gitlab.haskell.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-commits/attachments/20201025/d34a90c0/attachment.html>


More information about the ghc-commits mailing list