--- old/src/hotspot/share/gc/parallel/psParallelCompact.cpp 2020-08-07 13:15:48.337864529 +0200 +++ new/src/hotspot/share/gc/parallel/psParallelCompact.cpp 2020-08-07 13:15:48.209862493 +0200 @@ -1044,8 +1044,6 @@ // clearing policy at the next gc. Universe::update_heap_info_at_gc(); - Universe::heap()->next_whole_heap_examined(); - bool young_gen_empty = eden_empty && from_space->is_empty() && to_space->is_empty(); @@ -1070,6 +1068,9 @@ if (ZapUnusedHeapArea) { heap->gen_mangle_unused_area(); } + + // Signal that we have completed a visit to all live objects. + Universe::heap()->record_whole_heap_examined_timestamp(); } HeapWord*