--- old/src/hotspot/share/gc/g1/g1OopClosures.inline.hpp 2018-04-16 13:05:38.148103627 +0200 +++ new/src/hotspot/share/gc/g1/g1OopClosures.inline.hpp 2018-04-16 13:05:37.880095408 +0200 @@ -67,6 +67,10 @@ } } +inline void G1ScanClosureBase::trim_queue_partially() { + _par_scan_state->trim_queue_partially(); +} + template inline void G1ScanEvacuatedObjClosure::do_oop_nv(T* p) { T heap_oop = RawAccess<>::oop_load(p); @@ -225,6 +229,10 @@ _cm->mark_in_next_bitmap(_worker_id, to_obj, from_obj->size()); } +void G1ParCopyHelper::trim_queue_partially() { + _par_scan_state->trim_queue_partially(); +} + template template void G1ParCopyClosure::do_oop_work(T* p) { @@ -269,6 +277,7 @@ mark_object(obj); } } + trim_queue_partially(); } template void G1RebuildRemSetClosure::do_oop_nv(T* p) {