jdk11.0.2+9 G1BarrierSetC2::eliminate_gc_barrier JVM crash

Aleksey Shipilev shade at redhat.com
Fri Aug 2 08:16:44 UTC 2019

On 8/2/19 10:04 AM, Lee Harland wrote:
> Hi - i'd encountered this error while running Adopt Java9+ and posted it on
> the adopt github and they suggested I post it here. Link to the specific
> test case i made
> https://github.com/AdoptOpenJDK/openjdk-build/issues/967#issuecomment-514122684

This reproduces on current jdk/jdk:

$ build/linux-x86_64-server-fastdebug/images/jdk/bin/java -cp .:tinylog-1.3.5.jar JVMCrashOnJDK11

# A fatal error has been detected by the Java Runtime Environment:
#  Internal Error (/home/shade/trunks/jdk-jdk/src/hotspot/share/gc/g1/c2/g1BarrierSetC2.cpp:665),
pid=18721, tid=18748
#  assert(node->Opcode() == Op_CastP2X) failed: ConvP2XNode required
# JRE version: OpenJDK Runtime Environment (14.0) (fastdebug build 14-internal+0-adhoc.shade.jdk-jdk)
# Java VM: OpenJDK 64-Bit Server VM (fastdebug 14-internal+0-adhoc.shade.jdk-jdk, mixed mode,
sharing, tiered, compressed oops, g1 gc, linux-amd64)
# Problematic frame:
# V  [libjvm.so+0xbefedb]  G1BarrierSetC2::eliminate_gc_barrier(PhaseMacroExpand*, Node*) const+0x4b
# Core dump will be written. Default location: Core dumps may be processed with
"/usr/share/apport/apport %p %s %c %d %P" (or dumping to /home/shade/temp/gc/core.18721)
# If you would like to submit a bug report, please visit:
#   http://bugreport.java.com/bugreport/crash.jsp

V  [libjvm.so+0xbefedb]  G1BarrierSetC2::eliminate_gc_barrier(PhaseMacroExpand*, Node*) const+0x4b
V  [libjvm.so+0x1227bc0]  PhaseMacroExpand::process_users_of_allocation(CallNode*)+0x660
V  [libjvm.so+0x1228ccb]  PhaseMacroExpand::eliminate_allocate_node(AllocateNode*) [clone
V  [libjvm.so+0x122e8eb]  PhaseMacroExpand::eliminate_macro_nodes()+0x5cb

Looks like a regression. Submitted:


More information about the hotspot-gc-dev mailing list