Ticket #5259 (closed bug: worksforme)
Heap used by compacting collector larger than heap used without.
|Reported by:||r6||Owned by:||simonmar|
|Type of failure:||None/Unknown||Difficulty:|
|Test Case:||Blocked By:|
When you run a program that slowly accumulates memory with +RTS -M100M -c, the memory space used by the application will grow to around 200MB and it will crash with an out of heap error when the live data is around 100MB.
On the other hand if you run the program with +RTS -M100M, the memory space used by the application will grow to around 100MB and it will crash with an out of heap error when the live data is around 50MB.
This different interpretation of -Mfoo is confusing for the user. I find the latter interpretation more natural than the former.