< prev index next >

src/hotspot/share/gc/shenandoah/shenandoahControlThread.cpp

Print this page

        

*** 90,100 **** bool alloc_failure_pending = _alloc_failure_gc.is_set(); bool explicit_gc_requested = _gc_requested.is_set() && is_explicit_gc(_requested_gc_cause); bool implicit_gc_requested = _gc_requested.is_set() && !is_explicit_gc(_requested_gc_cause); // This control loop iteration have seen this much allocations. ! size_t allocs_seen = Atomic::xchg<size_t>(0, &_allocs_seen); // Choose which GC mode to run in. The block below should select a single mode. GCMode mode = none; GCCause::Cause cause = GCCause::_last_gc_cause; ShenandoahHeap::ShenandoahDegenPoint degen_point = ShenandoahHeap::_degenerated_unset; --- 90,100 ---- bool alloc_failure_pending = _alloc_failure_gc.is_set(); bool explicit_gc_requested = _gc_requested.is_set() && is_explicit_gc(_requested_gc_cause); bool implicit_gc_requested = _gc_requested.is_set() && !is_explicit_gc(_requested_gc_cause); // This control loop iteration have seen this much allocations. ! size_t allocs_seen = Atomic::xchg(&_allocs_seen, (size_t)0); // Choose which GC mode to run in. The block below should select a single mode. GCMode mode = none; GCCause::Cause cause = GCCause::_last_gc_cause; ShenandoahHeap::ShenandoahDegenPoint degen_point = ShenandoahHeap::_degenerated_unset;
*** 591,601 **** } } void ShenandoahControlThread::pacing_notify_alloc(size_t words) { assert(ShenandoahPacing, "should only call when pacing is enabled"); ! Atomic::add(words, &_allocs_seen); } void ShenandoahControlThread::set_forced_counters_update(bool value) { _force_counters_update.set_cond(value); } --- 591,601 ---- } } void ShenandoahControlThread::pacing_notify_alloc(size_t words) { assert(ShenandoahPacing, "should only call when pacing is enabled"); ! Atomic::add(&_allocs_seen, words); } void ShenandoahControlThread::set_forced_counters_update(bool value) { _force_counters_update.set_cond(value); }
< prev index next >