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

Add new methods to the java Whitebox API

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 9
    • 9
    • hotspot
    • None
    • b110
    • generic
    • generic

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

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

              Created:
              Updated:
              Resolved: