mirror of
https://github.com/openjdk/jdk.git
synced 2026-03-15 10:23:28 +00:00
8294514: Wrong initialization of nmethod::_consts_offset for native nmethods
Reviewed-by: kvn, dlong
This commit is contained in:
parent
953ce8da2c
commit
b4e74aeabf
@ -627,7 +627,7 @@ nmethod::nmethod(
|
||||
_orig_pc_offset = 0;
|
||||
_gc_epoch = CodeCache::gc_epoch();
|
||||
|
||||
_consts_offset = data_offset();
|
||||
_consts_offset = content_offset() + code_buffer->total_offset_of(code_buffer->consts());
|
||||
_stub_offset = content_offset() + code_buffer->total_offset_of(code_buffer->stubs());
|
||||
_oops_offset = data_offset();
|
||||
_metadata_offset = _oops_offset + align_up(code_buffer->total_oop_size(), oopSize);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user