src/hotspot/share/gc/shenandoah/shenandoahConcurrentRoots.cpp
changeset 57995 d8f22418ca99
parent 55428 e9da3a44a7ed
child 58679 9c3209ff7550
child 59296 9186be5c78ba
equal deleted inserted replaced
57994:197f36af94f3 57995:d8f22418ca99
    26 #include "gc/shenandoah/shenandoahConcurrentRoots.hpp"
    26 #include "gc/shenandoah/shenandoahConcurrentRoots.hpp"
    27 #include "gc/shenandoah/shenandoahHeap.inline.hpp"
    27 #include "gc/shenandoah/shenandoahHeap.inline.hpp"
    28 
    28 
    29 bool ShenandoahConcurrentRoots::can_do_concurrent_roots() {
    29 bool ShenandoahConcurrentRoots::can_do_concurrent_roots() {
    30   // Don't support traversal GC at this moment
    30   // Don't support traversal GC at this moment
    31   return !ShenandoahHeap::heap()->is_concurrent_traversal_in_progress();
    31   return !ShenandoahHeap::heap()->is_traversal_mode();
    32 }
    32 }
    33 
    33 
    34 bool ShenandoahConcurrentRoots::should_do_concurrent_roots() {
    34 bool ShenandoahConcurrentRoots::should_do_concurrent_roots() {
    35   ShenandoahHeap* const heap = ShenandoahHeap::heap();
    35   ShenandoahHeap* const heap = ShenandoahHeap::heap();
    36   bool stw_gc_in_progress = heap->is_full_gc_in_progress() ||
    36   bool stw_gc_in_progress = heap->is_full_gc_in_progress() ||