equal
deleted
inserted
replaced
71 #include "runtime/signature.hpp" |
71 #include "runtime/signature.hpp" |
72 #include "runtime/stubRoutines.hpp" |
72 #include "runtime/stubRoutines.hpp" |
73 #include "runtime/timer.hpp" |
73 #include "runtime/timer.hpp" |
74 #include "utilities/align.hpp" |
74 #include "utilities/align.hpp" |
75 #include "utilities/copy.hpp" |
75 #include "utilities/copy.hpp" |
|
76 #if INCLUDE_ALL_GCS |
|
77 #include "gc/g1/g1ThreadLocalData.hpp" |
|
78 #endif // INCLUDE_ALL_GCS |
76 |
79 |
77 |
80 |
78 // -------------------- Compile::mach_constant_base_node ----------------------- |
81 // -------------------- Compile::mach_constant_base_node ----------------------- |
79 // Constant table base node singleton. |
82 // Constant table base node singleton. |
80 MachConstantBaseNode* Compile::mach_constant_base_node() { |
83 MachConstantBaseNode* Compile::mach_constant_base_node() { |
3750 // Currently supported: |
3753 // Currently supported: |
3751 // - G1 pre-barriers (see GraphKit::g1_write_barrier_pre()) |
3754 // - G1 pre-barriers (see GraphKit::g1_write_barrier_pre()) |
3752 void Compile::verify_barriers() { |
3755 void Compile::verify_barriers() { |
3753 if (UseG1GC) { |
3756 if (UseG1GC) { |
3754 // Verify G1 pre-barriers |
3757 // Verify G1 pre-barriers |
3755 const int marking_offset = in_bytes(JavaThread::satb_mark_queue_offset() + SATBMarkQueue::byte_offset_of_active()); |
3758 const int marking_offset = in_bytes(G1ThreadLocalData::satb_mark_queue_active_offset()); |
3756 |
3759 |
3757 ResourceArea *area = Thread::current()->resource_area(); |
3760 ResourceArea *area = Thread::current()->resource_area(); |
3758 Unique_Node_List visited(area); |
3761 Unique_Node_List visited(area); |
3759 Node_List worklist(area); |
3762 Node_List worklist(area); |
3760 // We're going to walk control flow backwards starting from the Root |
3763 // We're going to walk control flow backwards starting from the Root |