src/jdk.internal.vm.ci/share/classes/jdk.vm.ci.hotspot/src/jdk/vm/ci/hotspot/HotSpotConstantPool.java
changeset 51444 3e5d28e6de32
parent 51420 6bb7b8d0da76
child 52381 7f90bc64b0fc
equal deleted inserted replaced
51443:cdffba164671 51444:3e5d28e6de32
   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);