diff options
author | Simon Marlow <marlowsd@gmail.com> | 2009-11-29 16:42:51 +0000 |
---|---|---|
committer | Simon Marlow <marlowsd@gmail.com> | 2009-11-29 16:42:51 +0000 |
commit | f9d15f9fccae4706fbdf8ee4ecaef7da9953cb74 (patch) | |
tree | ef79be277cf14c25b93739c420b7b2386f5562d4 /rts/sm/BlockAlloc.c | |
parent | 9ca114a5840d8d00320e90c047022fa2ca1fa668 (diff) | |
download | haskell-f9d15f9fccae4706fbdf8ee4ecaef7da9953cb74.tar.gz |
Store a destination step in the block descriptor
At the moment, this just saves a memory reference in the GC inner loop
(worth a percent or two of GC time). Later, it will hopefully let me
experiment with partial steps, and simplifying the generation/step
infrastructure.
Diffstat (limited to 'rts/sm/BlockAlloc.c')
-rw-r--r-- | rts/sm/BlockAlloc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/rts/sm/BlockAlloc.c b/rts/sm/BlockAlloc.c index bf7a55e7a9..d30d29b2f5 100644 --- a/rts/sm/BlockAlloc.c +++ b/rts/sm/BlockAlloc.c @@ -59,6 +59,7 @@ static void initMBlock(void *mblock); bd->flags bd->gen_no bd->step + bd->dest Exceptions: we don't maintain invariants for all the blocks within a group on the free list, because it is expensive to modify every |