RFR: [JVMCI] ConstantPool should not force eager resolution [v2]

Tom Rodriguez never at openjdk.org
Thu Jul 20 18:17:46 UTC 2023


On Thu, 20 Jul 2023 18:12:10 GMT, Doug Simon <dnsimon at openjdk.org> wrote:

>> src/jdk.internal.vm.ci/share/classes/jdk/vm/ci/hotspot/HotSpotConstantPool.java line 666:
>> 
>>> 664:                  * entries do not have a symbol in the constant pool slot.
>>> 665:                  */
>>> 666:                 return compilerToVM().lookupConstantInPool(this, cpi, true);
>> 
>> This is true because it's always safe to do so?
>
> I don't really know what these "pseudo strings" are. In any case, I don't think resolving them involves calling any Java code.

Sounds good.  It's not currently causing any problems and we can investigate further if we start restricting when we `can_call_java` and problems show up here.

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/14927#discussion_r1269809593


More information about the hotspot-compiler-dev mailing list