mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8141616: Add new methods to the java Whitebox API
Reviewed-by: kvn, dpochepk
This commit is contained in:
parent
a5a9e43f5a
commit
516438f368
1 changed files with 22 additions and 0 deletions
|
@ -119,6 +119,28 @@ public class WhiteBox {
|
|||
return getConstantPool0(aClass);
|
||||
}
|
||||
|
||||
private native int getConstantPoolCacheIndexTag0();
|
||||
public int getConstantPoolCacheIndexTag() {
|
||||
return getConstantPoolCacheIndexTag0();
|
||||
}
|
||||
|
||||
private native int getConstantPoolCacheLength0(Class<?> aClass);
|
||||
public int getConstantPoolCacheLength(Class<?> aClass) {
|
||||
Objects.requireNonNull(aClass);
|
||||
return getConstantPoolCacheLength0(aClass);
|
||||
}
|
||||
|
||||
private native int remapInstructionOperandFromCPCache0(Class<?> aClass, int index);
|
||||
public int remapInstructionOperandFromCPCache(Class<?> aClass, int index) {
|
||||
Objects.requireNonNull(aClass);
|
||||
return remapInstructionOperandFromCPCache0(aClass, index);
|
||||
}
|
||||
|
||||
private native int encodeConstantPoolIndyIndex0(int index);
|
||||
public int encodeConstantPoolIndyIndex(int index) {
|
||||
return encodeConstantPoolIndyIndex0(index);
|
||||
}
|
||||
|
||||
// JVMTI
|
||||
private native void addToBootstrapClassLoaderSearch0(String segment);
|
||||
public void addToBootstrapClassLoaderSearch(String segment){
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue