< prev index next >

src/hotspot/share/code/codeBlob.hpp

Print this page
rev 47398 : 8166317: InterpreterCodeSize should be computed
Reviewed-by: kvn, coleenp

*** 155,164 **** --- 155,171 ---- int size() const { return _size; } int header_size() const { return _header_size; } int relocation_size() const { return (address) relocation_end() - (address) relocation_begin(); } int content_size() const { return content_end() - content_begin(); } int code_size() const { return code_end() - code_begin(); } + // Only used from CodeCache::free_unused_tail() after the Interpreter blob was trimmed + void adjust_size(size_t used) { + _size = (int)used; + _data_offset = (int)used; + _code_end = (address)this + used; + _data_end = (address)this + used; + } // Containment bool blob_contains(address addr) const { return header_begin() <= addr && addr < data_end(); } bool code_contains(address addr) const { return code_begin() <= addr && addr < code_end(); } bool contains(address addr) const { return content_begin() <= addr && addr < content_end(); }
< prev index next >