Simplify the allocation stats accounting
authorSimon Marlow <marlowsd@gmail.com>
Thu, 14 Feb 2013 10:06:44 +0000 (10:06 +0000)
committerSimon Marlow <marlowsd@gmail.com>
Thu, 14 Feb 2013 10:06:53 +0000 (10:06 +0000)
commit65a0e1eb88fb48d085f8da498a7acc2fd345c2a8
tree3d5c6489c1b51d085a9f8b313aae5daa3330bcf2
parente5085db5d16f904f9307445fbafc206283f630c7
Simplify the allocation stats accounting

We were doing it in two different ways and asserting that the results
were the same.  In most cases they were, but I found one case where
they weren't: the GC itself allocates some memory for running
finalizers, and this memory was accounted for one way but not the
other.

It was simpler to remove the old way of counting allocation that to
try to fix it up, so I did that.
includes/rts/storage/GC.h
rts/Stats.c
rts/Stats.h
rts/sm/GC.c
rts/sm/GCThread.h
rts/sm/Storage.c
rts/sm/Storage.h