JDK-8141616 : Add new methods to the java Whitebox API
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: test
  • Affected Version: 9
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2015-11-06
  • Updated: 2016-03-15
  • Resolved: 2016-02-20
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 9
9 b110Fixed
Related Reports
Relates :  
Description
Add the following methods to the whitebox:

1) public int getConstantPoolCacheIndexTag() - returns value of constant ConstantPool::CPCACHE_INDEX_TAG
2) public int getConstantPoolCacheLength(Class<?> aClass) - returns length of constant pool cache length if it exists and "-1" if not.
3) public int remapInstructionOperandFromCPCache(Class<?> aClass, int index) - remaps cp cache index to cp index if cache exists and throws an exception if not.
4) public int encodeConstantPoolIndyIndex(int index) - returns a value given by ConstantPool::encode_invokedynamic_index(index);
Comments
Will use the new methods for testing JVMCI.
06-11-2015