src/jdk.internal.vm.ci/share/classes/jdk.vm.ci.hotspot/src/jdk/vm/ci/hotspot/HotSpotConstantPool.java
equal
deleted
inserted
replaced
520 case UnresolvedClassInError: |
520 case UnresolvedClassInError: |
521 final int opcode = -1; // opcode is not used |
521 final int opcode = -1; // opcode is not used |
522 return lookupType(cpi, opcode); |
522 return lookupType(cpi, opcode); |
523 case String: |
523 case String: |
524 /* |
524 /* |
525 * Normally, we would expect a String here, but anonymous classes can have |
525 * Normally, we would expect a String here, but unsafe anonymous classes can have |
526 * "pseudo strings" (arbitrary live objects) patched into a String entry. Such |
526 * "pseudo strings" (arbitrary live objects) patched into a String entry. Such |
527 * entries do not have a symbol in the constant pool slot. |
527 * entries do not have a symbol in the constant pool slot. |
528 */ |
528 */ |
529 Object string = compilerToVM().resolvePossiblyCachedConstantInPool(this, cpi); |
529 Object string = compilerToVM().resolvePossiblyCachedConstantInPool(this, cpi); |
530 return HotSpotObjectConstantImpl.forObject(string); |
530 return HotSpotObjectConstantImpl.forObject(string); |