Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8141616

Add new methods to the java Whitebox API

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 9
    • Fix Version/s: 9
    • Component/s: hotspot
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      b110
    • CPU:
      generic
    • OS:
      generic

      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);

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                kshefov Konstantin Shefov
                Reporter:
                kshefov Konstantin Shefov
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: