< prev index next >

src/hotspot/share/code/codeBlob.cpp

Print this page
*** 76,11 ***
    size += align_up(cb->total_oop_size(), oopSize);
    size += align_up(cb->total_metadata_size(), oopSize);
    return size;
  }
  
! CodeBlob::CodeBlob(const char* name, CompilerType type, const CodeBlobLayout& layout, int frame_complete_offset, int frame_size, ImmutableOopMapSet* oop_maps, bool caller_must_gc_arguments) :
    _type(type),
    _size(layout.size()),
    _header_size(layout.header_size()),
    _frame_complete_offset(frame_complete_offset),
    _data_offset(layout.data_offset()),
--- 76,11 ---
    size += align_up(cb->total_oop_size(), oopSize);
    size += align_up(cb->total_metadata_size(), oopSize);
    return size;
  }
  
! CodeBlob::CodeBlob(const char* name, CompilerType type, const CodeBlobLayout& layout, int frame_complete_offset, int frame_size, ImmutableOopMapSet* oop_maps, bool caller_must_gc_arguments, bool compiled) :
    _type(type),
    _size(layout.size()),
    _header_size(layout.header_size()),
    _frame_complete_offset(frame_complete_offset),
    _data_offset(layout.data_offset()),

*** 89,10 ***
--- 89,11 ---
    _code_end(layout.code_end()),
    _content_begin(layout.content_begin()),
    _data_end(layout.data_end()),
    _relocation_begin(layout.relocation_begin()),
    _relocation_end(layout.relocation_end()),
+   _is_compiled(compiled),
    _oop_maps(oop_maps),
    _caller_must_gc_arguments(caller_must_gc_arguments),
    _name(name)
  {
    assert(is_aligned(layout.size(),            oopSize), "unaligned size");

*** 104,11 ***
    assert(_frame_size >= -1, "must use frame size or -1 for runtime stubs");
  #endif // COMPILER1
    S390_ONLY(_ctable_offset = 0;) // avoid uninitialized fields
  }
  
! CodeBlob::CodeBlob(const char* name, CompilerType type, const CodeBlobLayout& layout, CodeBuffer* cb /*UNUSED*/, int frame_complete_offset, int frame_size, OopMapSet* oop_maps, bool caller_must_gc_arguments) :
    _type(type),
    _size(layout.size()),
    _header_size(layout.header_size()),
    _frame_complete_offset(frame_complete_offset),
    _data_offset(layout.data_offset()),
--- 105,11 ---
    assert(_frame_size >= -1, "must use frame size or -1 for runtime stubs");
  #endif // COMPILER1
    S390_ONLY(_ctable_offset = 0;) // avoid uninitialized fields
  }
  
! CodeBlob::CodeBlob(const char* name, CompilerType type, const CodeBlobLayout& layout, CodeBuffer* cb /*UNUSED*/, int frame_complete_offset, int frame_size, OopMapSet* oop_maps, bool caller_must_gc_arguments, bool compiled) :
    _type(type),
    _size(layout.size()),
    _header_size(layout.header_size()),
    _frame_complete_offset(frame_complete_offset),
    _data_offset(layout.data_offset()),

*** 117,10 ***
--- 118,11 ---
    _code_end(layout.code_end()),
    _content_begin(layout.content_begin()),
    _data_end(layout.data_end()),
    _relocation_begin(layout.relocation_begin()),
    _relocation_end(layout.relocation_end()),
+   _is_compiled(compiled),
    _caller_must_gc_arguments(caller_must_gc_arguments),
    _name(name)
  {
    assert(is_aligned(_size,        oopSize), "unaligned size");
    assert(is_aligned(_header_size, oopSize), "unaligned size");

*** 209,11 ***
  
    // Track memory usage statistic after releasing CodeCache_lock
    MemoryService::track_code_cache_memory_usage();
  }
  
! const ImmutableOopMap* CodeBlob::oop_map_for_return_address(address return_address) {
    assert(_oop_maps != NULL, "nope");
    return _oop_maps->find_map_at_offset((intptr_t) return_address - (intptr_t) code_begin());
  }
  
  void CodeBlob::print_code() {
--- 211,11 ---
  
    // Track memory usage statistic after releasing CodeCache_lock
    MemoryService::track_code_cache_memory_usage();
  }
  
! const ImmutableOopMap* CodeBlob::oop_map_for_return_address(address return_address) const {
    assert(_oop_maps != NULL, "nope");
    return _oop_maps->find_map_at_offset((intptr_t) return_address - (intptr_t) code_begin());
  }
  
  void CodeBlob::print_code() {
< prev index next >