RFR(S): 8239915: Zero VM crashes when handling dynamic constant

Yangfei (Felix) felix.yang at huawei.com
Wed Feb 26 02:18:57 UTC 2020


Hi,

Please help review this patch fixing a zero vm crash issue.
Bug: https://bugs.openjdk.java.net/browse/JDK-8239915
Webrev: http://cr.openjdk.java.net/~fyang/8239915/webrev.00/

The dynamic constant is not resolved at [1] and this leads to the crash.
Patch fixes the issue by always resolving the dynamic constant at the site.
This aligns with the template interpreter (TemplateTable::condy_helper).

Tier1 tested with x86-64 zero release build.
Newly added test case fails without this fix and passes with this fix.

[1] http://hg.openjdk.java.net/jdk/jdk/file/ff1f4b5e0c9a/src/hotspot/share/interpreter/bytecodeInterpreter.cpp#2394


More information about the hotspot-runtime-dev mailing list