gencgc: Compute bytes_allocated correctly during dynamic space pickup.
authorAlastair Bridgewater <nyef@lain.lisphacker.com>
Wed, 24 Apr 2013 17:13:50 +0000 (13:13 -0400)
committerAlastair Bridgewater <nyef@lain.lisphacker.com>
Wed, 1 May 2013 20:23:27 +0000 (16:23 -0400)
commitecca88e85c0f8bafea9be8c03cee793657168baf
tree276bc34eca6de0e2e216cc791393f1d883101899
parente57446ab7db28aca5599d8a2c62cfc3b4b9bbffa
gencgc: Compute bytes_allocated correctly during dynamic space pickup.

  * Rather than computing bytes_allocated based on the number of
pages prior to the "alloc pointer" (really the heap high-water
mark), accumulate it based on the number of ALLOCATED pages.

  * Fixes some lossage in write_generation_stats(), which seems to
be the only place where this value is checked against reality.
src/runtime/gencgc.c