equal
deleted
inserted
replaced
23 */ |
23 */ |
24 |
24 |
25 #ifndef SHARE_VM_GC_G1_G1ROOTPROCESSOR_HPP |
25 #ifndef SHARE_VM_GC_G1_G1ROOTPROCESSOR_HPP |
26 #define SHARE_VM_GC_G1_G1ROOTPROCESSOR_HPP |
26 #define SHARE_VM_GC_G1_G1ROOTPROCESSOR_HPP |
27 |
27 |
|
28 #include "gc/shared/oopStorageParState.hpp" |
28 #include "gc/shared/strongRootsScope.hpp" |
29 #include "gc/shared/strongRootsScope.hpp" |
29 #include "memory/allocation.hpp" |
30 #include "memory/allocation.hpp" |
30 #include "runtime/mutex.hpp" |
31 #include "runtime/mutex.hpp" |
31 |
32 |
32 class CLDClosure; |
33 class CLDClosure; |
47 // worker thread call the process_roots methods. |
48 // worker thread call the process_roots methods. |
48 class G1RootProcessor : public StackObj { |
49 class G1RootProcessor : public StackObj { |
49 G1CollectedHeap* _g1h; |
50 G1CollectedHeap* _g1h; |
50 SubTasksDone _process_strong_tasks; |
51 SubTasksDone _process_strong_tasks; |
51 StrongRootsScope _srs; |
52 StrongRootsScope _srs; |
|
53 OopStorage::ParState<false, false> _par_state_string; |
52 |
54 |
53 // Used to implement the Thread work barrier. |
55 // Used to implement the Thread work barrier. |
54 Monitor _lock; |
56 Monitor _lock; |
55 volatile jint _n_workers_discovered_strong_classes; |
57 volatile jint _n_workers_discovered_strong_classes; |
56 |
58 |