mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 23:04:50 +02:00
8186088: ConstantPoolCache::_resolved_references is not a JNIHandle
Make an OopHandle type to replace jobject to encapsulate these oop pointers in metadata and module entry. Reviewed-by: sspitsyn, dholmes, jiangli, twisti
This commit is contained in:
parent
c1f2527986
commit
111116dd5b
31 changed files with 142 additions and 48 deletions
|
@ -300,8 +300,7 @@ void InterpreterMacroAssembler::load_resolved_reference_at_index(
|
|||
// load pointer for resolved_references[] objArray
|
||||
ldr(cache, Address(result, ConstantPool::cache_offset_in_bytes()));
|
||||
ldr(cache, Address(result, ConstantPoolCache::resolved_references_offset_in_bytes()));
|
||||
// JNIHandles::resolve(result)
|
||||
ldr(cache, Address(cache, 0));
|
||||
resolve_oop_handle(cache);
|
||||
// Add in the index
|
||||
// convert from field index to resolved_references() index and from
|
||||
// word index to byte offset. Since this is a java object, it can be compressed
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue