mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 23:04:50 +02:00
8156587: [JVMCI] remove Unsafe.getJavaMirror and Unsafe.getKlassPointer
Reviewed-by: kvn
This commit is contained in:
parent
47b35cab0e
commit
39e5b15fdd
4 changed files with 1 additions and 86 deletions
|
@ -138,17 +138,6 @@ public class GetConstantPoolTest {
|
|||
return CompilerToVMHelper.getConstantPool(cpInst, ptr);
|
||||
}
|
||||
},
|
||||
OBJECT_TYPE_BASE {
|
||||
@Override
|
||||
ConstantPool getConstantPool() {
|
||||
HotSpotResolvedObjectType type
|
||||
= HotSpotResolvedObjectType.fromObjectClass(
|
||||
OBJECT_TYPE_BASE.getClass());
|
||||
long ptrToClass = UNSAFE.getKlassPointer(OBJECT_TYPE_BASE);
|
||||
return CompilerToVMHelper.getConstantPool(type,
|
||||
getPtrToCpAddress() - ptrToClass);
|
||||
}
|
||||
},
|
||||
;
|
||||
abstract ConstantPool getConstantPool();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue