rev 8070 : imported patch gencollected_heap_cleanup
@@ -667,11 +667,11 @@ return NULL; } } // Read the gc count while the heap lock is held. - gc_count_before = Universe::heap()->total_collections(); + gc_count_before = gch->total_collections(); } VM_GenCollectForAllocation op(size, is_tlab, gc_count_before); VMThread::execute(&op); if (op.prologue_succeeded()) {