Integrated: 8257917: [JVMCI] crash when materializing boxed values under -Xcomp
Doug Simon
dnsimon at openjdk.java.net
Wed Dec 9 20:29: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.
This pull request has now been integrated.
Changeset: baf4c1a4
Author: Doug Simon <dnsimon at openjdk.org>
URL: https://git.openjdk.java.net/jdk/commit/baf4c1a4
Stats: 57 lines in 4 files changed: 46 ins; 10 del; 1 mod
8257917: [JVMCI] crash when materializing boxed values under -Xcomp
Reviewed-by: iveresov, kvn
-------------
PR: https://git.openjdk.java.net/jdk/pull/1705
More information about the hotspot-compiler-dev
mailing list