--- old/src/hotspot/share/gc/g1/g1OopClosures.hpp 2018-04-19 10:05:28.230147395 +0200 +++ new/src/hotspot/share/gc/g1/g1OopClosures.hpp 2018-04-19 10:05:27.946138640 +0200 @@ -57,6 +57,8 @@ // This closure needs special handling for InstanceRefKlass. virtual ReferenceIterationMode reference_iteration_mode() { return DO_DISCOVERED_AND_DISCOVERY; } void set_region(HeapRegion* from) { _from = from; } + + inline void trim_queue_partially(); }; // Used during the Update RS phase to refine remaining cards in the DCQ during garbage collection. @@ -126,6 +128,8 @@ public: void set_scanned_cld(ClassLoaderData* cld) { _scanned_cld = cld; } inline void do_cld_barrier(oop new_obj); + + inline void trim_queue_partially(); }; enum G1Barrier {