42 |
42 |
43 #if INCLUDE_ALL_GCS |
43 #if INCLUDE_ALL_GCS |
44 #include "gc/g1/g1BarrierSet.hpp" |
44 #include "gc/g1/g1BarrierSet.hpp" |
45 #include "gc/g1/g1CardTable.hpp" |
45 #include "gc/g1/g1CardTable.hpp" |
46 #include "gc/g1/heapRegion.hpp" |
46 #include "gc/g1/heapRegion.hpp" |
|
47 #include "gc/g1/g1ThreadLocalData.hpp" |
47 #endif |
48 #endif |
48 |
49 |
49 #define VM_STRUCTS(nonstatic_field, static_field, unchecked_nonstatic_field, volatile_nonstatic_field) \ |
50 #define VM_STRUCTS(nonstatic_field, static_field, unchecked_nonstatic_field, volatile_nonstatic_field) \ |
50 static_field(CompilerToVM::Data, Klass_vtable_start_offset, int) \ |
51 static_field(CompilerToVM::Data, Klass_vtable_start_offset, int) \ |
51 static_field(CompilerToVM::Data, Klass_vtable_length_offset, int) \ |
52 static_field(CompilerToVM::Data, Klass_vtable_length_offset, int) \ |
170 nonstatic_field(JavaThread, _vm_result, oop) \ |
171 nonstatic_field(JavaThread, _vm_result, oop) \ |
171 volatile_nonstatic_field(JavaThread, _exception_oop, oop) \ |
172 volatile_nonstatic_field(JavaThread, _exception_oop, oop) \ |
172 volatile_nonstatic_field(JavaThread, _exception_pc, address) \ |
173 volatile_nonstatic_field(JavaThread, _exception_pc, address) \ |
173 volatile_nonstatic_field(JavaThread, _is_method_handle_return, int) \ |
174 volatile_nonstatic_field(JavaThread, _is_method_handle_return, int) \ |
174 nonstatic_field(JavaThread, _osthread, OSThread*) \ |
175 nonstatic_field(JavaThread, _osthread, OSThread*) \ |
175 ALL_GCS_ONLY(nonstatic_field(JavaThread, _satb_mark_queue, SATBMarkQueue)) \ |
|
176 ALL_GCS_ONLY(nonstatic_field(JavaThread, _dirty_card_queue, DirtyCardQueue)) \ |
|
177 nonstatic_field(JavaThread, _pending_deoptimization, int) \ |
176 nonstatic_field(JavaThread, _pending_deoptimization, int) \ |
178 nonstatic_field(JavaThread, _pending_failed_speculation, oop) \ |
177 nonstatic_field(JavaThread, _pending_failed_speculation, oop) \ |
179 nonstatic_field(JavaThread, _pending_transfer_to_interpreter, bool) \ |
178 nonstatic_field(JavaThread, _pending_transfer_to_interpreter, bool) \ |
180 nonstatic_field(JavaThread, _jvmci_counters, jlong*) \ |
179 nonstatic_field(JavaThread, _jvmci_counters, jlong*) \ |
181 nonstatic_field(JavaThread, _reserved_stack_activation, address) \ |
180 nonstatic_field(JavaThread, _reserved_stack_activation, address) \ |
513 declare_constant(Deoptimization::Reason_not_compiled_exception_handler) \ |
512 declare_constant(Deoptimization::Reason_not_compiled_exception_handler) \ |
514 declare_constant(Deoptimization::Reason_unresolved) \ |
513 declare_constant(Deoptimization::Reason_unresolved) \ |
515 declare_constant(Deoptimization::Reason_jsr_mismatch) \ |
514 declare_constant(Deoptimization::Reason_jsr_mismatch) \ |
516 declare_constant(Deoptimization::Reason_LIMIT) \ |
515 declare_constant(Deoptimization::Reason_LIMIT) \ |
517 \ |
516 \ |
518 ALL_GCS_ONLY(declare_constant_with_value("dirtyCardQueueBufferOffset", in_bytes(DirtyCardQueue::byte_offset_of_buf()))) \ |
|
519 ALL_GCS_ONLY(declare_constant_with_value("dirtyCardQueueIndexOffset", in_bytes(DirtyCardQueue::byte_offset_of_index()))) \ |
|
520 \ |
|
521 declare_constant(FieldInfo::access_flags_offset) \ |
517 declare_constant(FieldInfo::access_flags_offset) \ |
522 declare_constant(FieldInfo::name_index_offset) \ |
518 declare_constant(FieldInfo::name_index_offset) \ |
523 declare_constant(FieldInfo::signature_index_offset) \ |
519 declare_constant(FieldInfo::signature_index_offset) \ |
524 declare_constant(FieldInfo::initval_index_offset) \ |
520 declare_constant(FieldInfo::initval_index_offset) \ |
525 declare_constant(FieldInfo::low_packed_offset) \ |
521 declare_constant(FieldInfo::low_packed_offset) \ |
570 \ |
566 \ |
571 declare_constant(ReceiverTypeData::nonprofiled_count_off_set) \ |
567 declare_constant(ReceiverTypeData::nonprofiled_count_off_set) \ |
572 declare_constant(ReceiverTypeData::receiver_type_row_cell_count) \ |
568 declare_constant(ReceiverTypeData::receiver_type_row_cell_count) \ |
573 declare_constant(ReceiverTypeData::receiver0_offset) \ |
569 declare_constant(ReceiverTypeData::receiver0_offset) \ |
574 declare_constant(ReceiverTypeData::count0_offset) \ |
570 declare_constant(ReceiverTypeData::count0_offset) \ |
575 \ |
|
576 ALL_GCS_ONLY(declare_constant_with_value("satbMarkQueueBufferOffset", in_bytes(SATBMarkQueue::byte_offset_of_buf()))) \ |
|
577 ALL_GCS_ONLY(declare_constant_with_value("satbMarkQueueIndexOffset", in_bytes(SATBMarkQueue::byte_offset_of_index()))) \ |
|
578 ALL_GCS_ONLY(declare_constant_with_value("satbMarkQueueActiveOffset", in_bytes(SATBMarkQueue::byte_offset_of_active()))) \ |
|
579 \ |
571 \ |
580 declare_constant(vmIntrinsics::_invokeBasic) \ |
572 declare_constant(vmIntrinsics::_invokeBasic) \ |
581 declare_constant(vmIntrinsics::_linkToVirtual) \ |
573 declare_constant(vmIntrinsics::_linkToVirtual) \ |
582 declare_constant(vmIntrinsics::_linkToStatic) \ |
574 declare_constant(vmIntrinsics::_linkToStatic) \ |
583 declare_constant(vmIntrinsics::_linkToSpecial) \ |
575 declare_constant(vmIntrinsics::_linkToSpecial) \ |
652 |
644 |
653 #define VM_STRUCTS_JVMCI_G1GC(nonstatic_field, static_field) \ |
645 #define VM_STRUCTS_JVMCI_G1GC(nonstatic_field, static_field) \ |
654 static_field(HeapRegion, LogOfHRGrainBytes, int) |
646 static_field(HeapRegion, LogOfHRGrainBytes, int) |
655 |
647 |
656 #define VM_INT_CONSTANTS_JVMCI_G1GC(declare_constant, declare_constant_with_value, declare_preprocessor_constant) \ |
648 #define VM_INT_CONSTANTS_JVMCI_G1GC(declare_constant, declare_constant_with_value, declare_preprocessor_constant) \ |
657 declare_constant_with_value("G1CardTable::g1_young_gen", G1CardTable::g1_young_card_val()) |
649 declare_constant_with_value("G1CardTable::g1_young_gen", G1CardTable::g1_young_card_val()) \ |
|
650 declare_constant_with_value("G1ThreadLocalData::satb_mark_queue_active_offset", in_bytes(G1ThreadLocalData::satb_mark_queue_active_offset())) \ |
|
651 declare_constant_with_value("G1ThreadLocalData::satb_mark_queue_index_offset", in_bytes(G1ThreadLocalData::satb_mark_queue_index_offset())) \ |
|
652 declare_constant_with_value("G1ThreadLocalData::satb_mark_queue_buffer_offset", in_bytes(G1ThreadLocalData::satb_mark_queue_buffer_offset())) \ |
|
653 declare_constant_with_value("G1ThreadLocalData::dirty_card_queue_index_offset", in_bytes(G1ThreadLocalData::dirty_card_queue_index_offset())) \ |
|
654 declare_constant_with_value("G1ThreadLocalData::dirty_card_queue_buffer_offset", in_bytes(G1ThreadLocalData::dirty_card_queue_buffer_offset())) |
658 |
655 |
659 #endif // INCLUDE_ALL_GCS |
656 #endif // INCLUDE_ALL_GCS |
660 |
657 |
661 |
658 |
662 #ifdef LINUX |
659 #ifdef LINUX |