7042740: CMS: assert(n> q) failed: Looping at: ... blockOffsetTable.cpp:557

Do a one-step look-ahead, when sweeping free or garbage blocks, to avoid overstepping sweep limit, which may become a non-block-boundary because of a heap expansion delta coalescing with a previously co-terminal free block.

Reviewed-by: brutisso, tonyp
4 files changed