equal
deleted
inserted
replaced
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() || |