ADDITIONAL SYSTEM INFORMATION :
$ uname -a
Linux rodimus 6.8.0-62-generic #65-Ubuntu SMP PREEMPT_DYNAMIC Mon May 19 17:15:03 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 24.04.2 LTS
Release: 24.04
Codename: noble
$ java -version
openjdk version "11.0.28-internal" 2025-07-15
OpenJDK Runtime Environment (build 11.0.28-internal+0-adhoc.fabiano.hotspot11)
OpenJDK 64-Bit Server VM (build 11.0.28-internal+0-adhoc.fabiano.hotspot11, mixed mode)
A DESCRIPTION OF THE PROBLEM :
When running the jvm with the following arguments, it fails with a guarantee failure related to the `EmitSync` value being too large:
java -verbose:class -XX:+UnlockExperimentalVMOptions -XX:EmitSync=522293557 -XX:-UseInterpreter
The gurantee in question is:
guarantee(mid->header()->is_neutral()) failed: invariant
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Run:
java -verbose:class -XX:+UnlockExperimentalVMOptions -XX:EmitSync=522293557 -XX:-UseInterpreter
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Print help message and exit gracefully.
ACTUAL -
#
# A fatal error has been detected by the Java Runtime Environment:
#
# Internal Error (synchronizer.cpp:1627), pid=1453972, tid=1453974
# guarantee(mid->header()->is_neutral()) failed: invariant
#
# JRE version: OpenJDK Runtime Environment (11.0.28) (build 11.0.28-internal+0-adhoc.fabiano.hotspot11)
# Java VM: OpenJDK 64-Bit Server VM (11.0.28-internal+0-adhoc.fabiano.hotspot11, mixed mode, tiered, compressed oops, g1 gc, linux-amd64)
# Core dump will be written. Default location: Core dumps may be processed with "/usr/share/apport/apport -p%p -s%s -c%c -d%d -P%P -u%u -g%g -F%F -- %E" (or dumping to /XXX/XXXX/XXXXX/src/jvm/jvm-sec/jvms/jdks/hotspot11/build/linux-x86_64-normal-server-release/images/jdk/bin/core.1453972)
#
# If you would like to submit a bug report, please visit:
# https://bugreport.java.com/bugreport/crash.jsp
#
$ uname -a
Linux rodimus 6.8.0-62-generic #65-Ubuntu SMP PREEMPT_DYNAMIC Mon May 19 17:15:03 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 24.04.2 LTS
Release: 24.04
Codename: noble
$ java -version
openjdk version "11.0.28-internal" 2025-07-15
OpenJDK Runtime Environment (build 11.0.28-internal+0-adhoc.fabiano.hotspot11)
OpenJDK 64-Bit Server VM (build 11.0.28-internal+0-adhoc.fabiano.hotspot11, mixed mode)
A DESCRIPTION OF THE PROBLEM :
When running the jvm with the following arguments, it fails with a guarantee failure related to the `EmitSync` value being too large:
java -verbose:class -XX:+UnlockExperimentalVMOptions -XX:EmitSync=522293557 -XX:-UseInterpreter
The gurantee in question is:
guarantee(mid->header()->is_neutral()) failed: invariant
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Run:
java -verbose:class -XX:+UnlockExperimentalVMOptions -XX:EmitSync=522293557 -XX:-UseInterpreter
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Print help message and exit gracefully.
ACTUAL -
#
# A fatal error has been detected by the Java Runtime Environment:
#
# Internal Error (synchronizer.cpp:1627), pid=1453972, tid=1453974
# guarantee(mid->header()->is_neutral()) failed: invariant
#
# JRE version: OpenJDK Runtime Environment (11.0.28) (build 11.0.28-internal+0-adhoc.fabiano.hotspot11)
# Java VM: OpenJDK 64-Bit Server VM (11.0.28-internal+0-adhoc.fabiano.hotspot11, mixed mode, tiered, compressed oops, g1 gc, linux-amd64)
# Core dump will be written. Default location: Core dumps may be processed with "/usr/share/apport/apport -p%p -s%s -c%c -d%d -P%P -u%u -g%g -F%F -- %E" (or dumping to /XXX/XXXX/XXXXX/src/jvm/jvm-sec/jvms/jdks/hotspot11/build/linux-x86_64-normal-server-release/images/jdk/bin/core.1453972)
#
# If you would like to submit a bug report, please visit:
# https://bugreport.java.com/bugreport/crash.jsp
#