[commit: ghc] master: A small GC optimisation (bef3da1)
Simon Marlow
marlowsd at gmail.com
Wed Feb 2 16:59:47 CET 2011
Repository : ssh://darcs.haskell.org//srv/darcs/ghc
On branch : master
http://hackage.haskell.org/trac/ghc/changeset/bef3da1e26639303fccbf26c312d2833eedb486e
>---------------------------------------------------------------
commit bef3da1e26639303fccbf26c312d2833eedb486e
Author: Simon Marlow <marlowsd at gmail.com>
Date: Wed Feb 2 12:30:49 2011 +0000
A small GC optimisation
Store the *number* of the destination generation in the Bdescr struct,
so that in evacuate() we don't have to deref gen to get it.
This is another improvement ported over from my GC branch.
includes/rts/storage/Block.h | 43 ++++++++++++++-----
includes/rts/storage/GC.h | 6 +-
rts/Arena.c | 2 +-
rts/sm/Evac.c | 95 +++++++++++++++++++++--------------------
rts/sm/GC.c | 8 ++--
rts/sm/GCThread.h | 2 +-
rts/sm/MarkWeak.c | 2 +-
rts/sm/Scav.c | 26 ++++++-----
8 files changed, 104 insertions(+), 80 deletions(-)
Diff suppressed because of size. To see it, use:
git show bef3da1e26639303fccbf26c312d2833eedb486e
More information about the Cvs-ghc
mailing list