diff options
author | Simon Marlow <marlowsd@gmail.com> | 2013-02-14 10:06:44 +0000 |
---|---|---|
committer | Simon Marlow <marlowsd@gmail.com> | 2013-02-14 10:06:53 +0000 |
commit | 65a0e1eb88fb48d085f8da498a7acc2fd345c2a8 (patch) | |
tree | 3d5c6489c1b51d085a9f8b313aae5daa3330bcf2 /includes/rts | |
parent | e5085db5d16f904f9307445fbafc206283f630c7 (diff) | |
download | haskell-65a0e1eb88fb48d085f8da498a7acc2fd345c2a8.tar.gz |
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.
Diffstat (limited to 'includes/rts')
-rw-r--r-- | includes/rts/storage/GC.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/rts/storage/GC.h b/includes/rts/storage/GC.h index a5f4ed6f36..80f11d3ee1 100644 --- a/includes/rts/storage/GC.h +++ b/includes/rts/storage/GC.h @@ -77,7 +77,7 @@ typedef struct generation_ { memcount n_large_blocks; // no. of blocks used by large objs memcount n_large_words; // no. of words used by large objs memcount n_new_large_words; // words of new large objects - // (for allocation stats) + // (for doYouWantToGC()) memcount max_blocks; // max blocks |