issue 1156: When performing GC compaction, measure actual garbage before proceeding