mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +02:00
8166317: InterpreterCodeSize should be computed
Reviewed-by: kvn, coleenp
This commit is contained in:
parent
7030019135
commit
a5d5806cb4
10 changed files with 88 additions and 31 deletions
|
@ -156,6 +156,13 @@ public:
|
|||
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(); }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue