A small GC optimisation
authorSimon Marlow <marlowsd@gmail.com>
Wed, 2 Feb 2011 12:30:49 +0000 (12:30 +0000)
committerSimon Marlow <marlowsd@gmail.com>
Wed, 2 Feb 2011 12:30:49 +0000 (12:30 +0000)
commitbef3da1e26639303fccbf26c312d2833eedb486e
treeb1c8b91568eec0e0ba2ea448981d0e3f17eba741
parentc226846642a2201762ee34f6f71b42f13bc46629
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
includes/rts/storage/GC.h
rts/Arena.c
rts/sm/Evac.c
rts/sm/GC.c
rts/sm/GCThread.h
rts/sm/MarkWeak.c
rts/sm/Scav.c