< prev index next >

src/hotspot/share/gc/g1/g1ParScanThreadState.inline.hpp

Print this page
rev 49680 : imported patch 6672778-partial-queue-trimming
rev 49681 : imported patch 6672778-refactoring
rev 49682 : [mq]: 6672778-stefanj-review
rev 49683 : [mq]: 6672778-inconsistent-time-fixes

*** 151,165 **** trim_queue(); } } inline bool G1ParScanThreadState::needs_partial_trimming() const { ! return !_refs->overflow_empty() || _refs->size() > _stack_drain_upper_threshold; } inline bool G1ParScanThreadState::is_partially_trimmed() const { ! return _refs->overflow_empty() && _refs->size() <= _stack_drain_lower_threshold; } inline void G1ParScanThreadState::trim_queue_to_threshold(uint threshold) { StarTask ref; // Drain the overflow stack first, so other threads can potentially steal. --- 151,165 ---- trim_queue(); } } inline bool G1ParScanThreadState::needs_partial_trimming() const { ! return !_refs->overflow_empty() || _refs->size() > _stack_trim_upper_threshold; } inline bool G1ParScanThreadState::is_partially_trimmed() const { ! return _refs->overflow_empty() && _refs->size() <= _stack_trim_lower_threshold; } inline void G1ParScanThreadState::trim_queue_to_threshold(uint threshold) { StarTask ref; // Drain the overflow stack first, so other threads can potentially steal.
*** 179,189 **** return; } const Ticks start = Ticks::now(); do { ! trim_queue_to_threshold(_stack_drain_lower_threshold); } while (!is_partially_trimmed()); _trim_ticks += Ticks::now() - start; } inline Tickspan G1ParScanThreadState::trim_ticks() { --- 179,189 ---- return; } const Ticks start = Ticks::now(); do { ! trim_queue_to_threshold(_stack_trim_lower_threshold); } while (!is_partially_trimmed()); _trim_ticks += Ticks::now() - start; } inline Tickspan G1ParScanThreadState::trim_ticks() {
< prev index next >