hotspot/src/share/vm/jvmci/jvmciCompilerToVM.cpp
changeset 39441 7464b1552bf7
parent 39423 0f8dc3693499
child 40372 ee472073dab0
equal deleted inserted replaced
39436:f07320a4e634 39441:7464b1552bf7
   111 uintptr_t CompilerToVM::Data::Universe_verify_oop_bits;
   111 uintptr_t CompilerToVM::Data::Universe_verify_oop_bits;
   112 
   112 
   113 bool       CompilerToVM::Data::_supports_inline_contig_alloc;
   113 bool       CompilerToVM::Data::_supports_inline_contig_alloc;
   114 HeapWord** CompilerToVM::Data::_heap_end_addr;
   114 HeapWord** CompilerToVM::Data::_heap_end_addr;
   115 HeapWord** CompilerToVM::Data::_heap_top_addr;
   115 HeapWord** CompilerToVM::Data::_heap_top_addr;
       
   116 int CompilerToVM::Data::_max_oop_map_stack_offset;
   116 
   117 
   117 jbyte* CompilerToVM::Data::cardtable_start_address;
   118 jbyte* CompilerToVM::Data::cardtable_start_address;
   118 int CompilerToVM::Data::cardtable_shift;
   119 int CompilerToVM::Data::cardtable_shift;
   119 
   120 
   120 int CompilerToVM::Data::vm_page_size;
   121 int CompilerToVM::Data::vm_page_size;
   151   Universe_verify_oop_bits = Universe::verify_oop_bits();
   152   Universe_verify_oop_bits = Universe::verify_oop_bits();
   152 
   153 
   153   _supports_inline_contig_alloc = Universe::heap()->supports_inline_contig_alloc();
   154   _supports_inline_contig_alloc = Universe::heap()->supports_inline_contig_alloc();
   154   _heap_end_addr = _supports_inline_contig_alloc ? Universe::heap()->end_addr() : (HeapWord**) -1;
   155   _heap_end_addr = _supports_inline_contig_alloc ? Universe::heap()->end_addr() : (HeapWord**) -1;
   155   _heap_top_addr = _supports_inline_contig_alloc ? Universe::heap()->top_addr() : (HeapWord**) -1;
   156   _heap_top_addr = _supports_inline_contig_alloc ? Universe::heap()->top_addr() : (HeapWord**) -1;
       
   157 
       
   158   _max_oop_map_stack_offset = (OopMapValue::register_mask - VMRegImpl::stack2reg(0)->value()) * VMRegImpl::stack_slot_size;
       
   159   int max_oop_map_stack_index = _max_oop_map_stack_offset / VMRegImpl::stack_slot_size;
       
   160   assert(OopMapValue::legal_vm_reg_name(VMRegImpl::stack2reg(max_oop_map_stack_index)), "should be valid");
       
   161   assert(!OopMapValue::legal_vm_reg_name(VMRegImpl::stack2reg(max_oop_map_stack_index + 1)), "should be invalid");
   156 
   162 
   157   BarrierSet* bs = Universe::heap()->barrier_set();
   163   BarrierSet* bs = Universe::heap()->barrier_set();
   158   switch (bs->kind()) {
   164   switch (bs->kind()) {
   159   case BarrierSet::CardTableModRef:
   165   case BarrierSet::CardTableModRef:
   160   case BarrierSet::CardTableForRS:
   166   case BarrierSet::CardTableForRS: