--- old/src/hotspot/share/gc/g1/g1OopClosures.inline.hpp 2018-04-11 13:43:36.382588236 +0200 +++ new/src/hotspot/share/gc/g1/g1OopClosures.inline.hpp 2018-04-11 13:43:36.115580037 +0200 @@ -38,7 +38,6 @@ #include "oops/oopsHierarchy.hpp" #include "oops/oop.inline.hpp" #include "runtime/prefetch.inline.hpp" -#include "utilities/ticks.inline.hpp" template inline void G1ScanClosureBase::prefetch_and_push(T* p, const oop obj) { @@ -69,13 +68,7 @@ } inline void G1ScanClosureBase::trim_queue_partially() { - _trim_ticks += _par_scan_state->trim_queue_partially(); -} - -inline Tickspan G1ScanClosureBase::trim_ticks_and_reset() { - Tickspan result = _trim_ticks; - _trim_ticks = Tickspan(); - return result; + _par_scan_state->trim_queue_partially(); } template @@ -214,12 +207,6 @@ } } -inline Tickspan G1ParCopyHelper::trim_ticks_and_reset() { - Tickspan result = _trim_ticks; - _trim_ticks = Tickspan(); - return result; -} - void G1ParCopyHelper::mark_object(oop obj) { assert(!_g1h->heap_region_containing(obj)->in_collection_set(), "should not mark objects in the CSet"); @@ -243,7 +230,7 @@ } void G1ParCopyHelper::trim_queue_partially() { - _trim_ticks += _par_scan_state->trim_queue_partially(); + _par_scan_state->trim_queue_partially(); } template