Count allocations more accurately
authorSimon Marlow <marlowsd@gmail.com>
Tue, 21 Dec 2010 15:29:56 +0000 (15:29 +0000)
committerSimon Marlow <marlowsd@gmail.com>
Tue, 21 Dec 2010 15:29:56 +0000 (15:29 +0000)
commitdb0c13a482893243cc829bbc253862e65f437cbe
tree96e3977a77b92f102c03518d826368cec5cd1229
parent1d7a3cf332532b1f9d798b44e76c4be6f0c74dcf
Count allocations more accurately
The allocation stats (+RTS -s etc.) used to count the slop at the end
of each nursery block (except the last) as allocated space, now we
count the allocated words accurately.  This should make allocation
figures more predictable, too.

This has the side effect of reducing the apparent allocations by a
small amount (~1%), so remember to take this into account when looking
at nofib results.
includes/Cmm.h
includes/mkDerivedConstants.c
includes/rts/storage/GC.h
includes/stg/MiscClosures.h
rts/Linker.c
rts/sm/GC.c
rts/sm/Storage.c
rts/sm/Storage.h