RFR: 8257917: [JVMCI] crash when materializing boxed values under -Xcomp
Vladimir Kozlov
kvn at openjdk.java.net
Tue Dec 8 22:25:34 UTC 2020
On Tue, 8 Dec 2020 21:20:37 GMT, Doug Simon <dnsimon at openjdk.org> wrote:
> The following crash can occur under `-Xcomp` when JVMCI compiled code tries to materialize a virtual box (e.g. `java.lang.Character` object):
> # Internal Error (deoptimization.cpp:798), pid=26877, tid=8195
> # guarantee(ik->is_initialized()) failed: java/lang/Character$CharacterCache must be initialized
> The problem occurs when the caching class (`java/lang/Character$CharacterCache` in this case) has not been initialized. Normally, the caching class will be initialized when interpreting code that does autoboxing. However, with `-XX:-TieredCompilation -Xcomp` it's possible for class initialization to not be interpreted. When JVMCI compiled code containing virtual boxes is about to be installed, the VM must ensure the box caching classes are initialized. This PR does exactly that.
Good.
-------------
Marked as reviewed by kvn (Reviewer).
PR: https://git.openjdk.java.net/jdk/pull/1705
More information about the hotspot-compiler-dev
mailing list