Details
-
Bug
-
Resolution: Fixed
-
P4
-
11, 16
-
b28
Backports
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8259688 | 11.0.11-oracle | Dukebot | P4 | Resolved | Fixed | b02 |
Description
#
# A fatal error has been detected by the Java Runtime Environment:
#
# Internal Error (deoptimization.cpp:798), pid=26877, tid=8195
# guarantee(ik->is_initialized()) failed: java/lang/Character$CharacterCache must be initialized
#
The above crash can happen when JVMCI compiled code escape analyzes a boxed char and needs to materialize it when deoptimizing the compiled code. The problem occurs when the caching class (java/lang/Character$CharacterCache in this case) has not been initialized. In normal execution where code is first interpreted and then compiled, this should never happen as the class will be initialized during interpretation. However, with `-XX:-TieredCompilation -Xcomp` it's possible for class initialization to not be interpreted meaning that it has to be done before the compiled code is executed.
# A fatal error has been detected by the Java Runtime Environment:
#
# Internal Error (deoptimization.cpp:798), pid=26877, tid=8195
# guarantee(ik->is_initialized()) failed: java/lang/Character$CharacterCache must be initialized
#
The above crash can happen when JVMCI compiled code escape analyzes a boxed char and needs to materialize it when deoptimizing the compiled code. The problem occurs when the caching class (java/lang/Character$CharacterCache in this case) has not been initialized. In normal execution where code is first interpreted and then compiled, this should never happen as the class will be initialized during interpretation. However, with `-XX:-TieredCompilation -Xcomp` it's possible for class initialization to not be interpreted meaning that it has to be done before the compiled code is executed.
Attachments
Issue Links
- backported by
-
JDK-8259688 [JVMCI] crash when materializing boxed values under -Xcomp
-
- Resolved
-
- relates to
-
JDK-8258015 [JVMCI] JVMCI_lock shouldn't be held while initializing box classes
-
- Resolved
-