< prev index next >
src/hotspot/share/gc/g1/g1ParScanThreadState.inline.hpp
Print this page
rev 49680 : imported patch 6672778-partial-queue-trimming
rev 49681 : [mq]: 6672778-refactoring
*** 174,189 ****
dispatch_reference(ref);
}
} while (!should_end_trim_queue_partially());
}
! inline Tickspan G1ParScanThreadState::trim_queue_partially() {
! Tickspan result;
if (should_start_trim_queue_partially()) {
const Ticks start = Ticks::now();
trim_queue_partially_internal();
! result = Ticks::now() - start;
}
return result;
}
#endif // SHARE_VM_GC_G1_G1PARSCANTHREADSTATE_INLINE_HPP
--- 174,193 ----
dispatch_reference(ref);
}
} while (!should_end_trim_queue_partially());
}
! inline void G1ParScanThreadState::trim_queue_partially() {
if (should_start_trim_queue_partially()) {
const Ticks start = Ticks::now();
trim_queue_partially_internal();
! _trim_ticks += Ticks::now() - start;
}
+ }
+
+ inline Tickspan G1ParScanThreadState::trim_ticks_and_reset() {
+ Tickspan result = _trim_ticks;
+ _trim_ticks = Tickspan();
return result;
}
#endif // SHARE_VM_GC_G1_G1PARSCANTHREADSTATE_INLINE_HPP
< prev index next >