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 22:02:53 UTC 2017
I also want to thank Ioi for helping narrow down and diagnose the issue quickly!
Jiangli
> On Aug 15, 2017, at 2:59 PM, Jiangli Zhou <jiangli.zhou at Oracle.COM> wrote:
>
> 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/ <http://cr.openjdk.java.net/~jiangli/8186238/webrev.00/>
> bug: https://bugs.openjdk.java.net/browse/JDK-8186238 <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