RFR (S): 8186238: The constant pool entry to empty string ("") should not be pre-resolved during CDS dump time

Jiangli Zhou jiangli.zhou at oracle.com
Tue Aug 15 21:59:43 UTC 2017


Hi,

Please review the following fix for JDK-8186238 <https://bugs.openjdk.java.net/browse/JDK-8186238>. Empty string “” is excluded from the shared string table at CDS dump time. During pre-resolving the constant pool string entries at dump time, the entries to the empty string should be skipped, otherwise different instances might be returned when calling intern() on empty string at runtime.

webrev: http://cr.openjdk.java.net/~jiangli/8186238/webrev.00/
bug:    https://bugs.openjdk.java.net/browse/JDK-8186238

Tested with the failed tests shown in nightly.

Thanks,
Jiangli



More information about the hotspot-runtime-dev mailing list