< prev index next >

src/hotspot/share/code/codeBlob.cpp

Print this page

        

*** 71,81 **** 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()), --- 71,81 ---- 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()),
*** 84,93 **** --- 84,94 ---- _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), _strings(CodeStrings()), _name(name) {
*** 99,109 **** // probably wrong for tiered assert(_frame_size >= -1, "must use frame size or -1 for runtime stubs"); #endif // COMPILER1 } ! CodeBlob::CodeBlob(const char* name, CompilerType type, const CodeBlobLayout& layout, CodeBuffer* cb, 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()), --- 100,110 ---- // probably wrong for tiered assert(_frame_size >= -1, "must use frame size or -1 for runtime stubs"); #endif // COMPILER1 } ! CodeBlob::CodeBlob(const char* name, CompilerType type, const CodeBlobLayout& layout, CodeBuffer* cb, 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()),
*** 112,121 **** --- 113,123 ---- _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), _strings(CodeStrings()), _name(name) { assert(is_aligned(_size, oopSize), "unaligned size");
*** 204,214 **** // 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() { --- 206,216 ---- // 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 >