Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8309199

[JVMCI] assert(is_jvmci_compiler() && is_jvmci() || !is_jvmci_compiler()) failed: JVMCI compiler implies enabled JVMCI

XMLWordPrintable

      Running runtime/Thread/TestSpinPause.java on GraalVM triggers this assertion:

      # A fatal error has been detected by the Java Runtime Environment:
      #
      # Internal Error (workspace/open/src/hotspot/share/compiler/compilerDefinitions.inline.hpp:60), pid=955879, tid=955898
      # assert(is_jvmci_compiler() && is_jvmci() || !is_jvmci_compiler()) failed: JVMCI compiler implies enabled JVMCI
      #
      # JRE version: (21.0+1) (fastdebug build )
      # Java VM: Java HotSpot(TM) 64-Bit Server VM (fastdebug 21-galahadee+1-LTS-48, interpreted mode, sharing, jvmci compiler, compressed oops, compressed class ptrs, g1 gc, linux-aarch64)
      # Problematic frame:
      # V [libjvm.so+0x15f3ef8] TemplateTable::getfield_or_static(int, bool, TemplateTable::RewriteControl)+0xa98
      #

      The fix is trivial:

      diff --git a/src/hotspot/share/compiler/compilerDefinitions.cpp b/src/hotspot/share/compiler/compilerDefinitions.cpp
      index 97e54e3acf5..23af57f3910 100644
      --- a/src/hotspot/share/compiler/compilerDefinitions.cpp
      +++ b/src/hotspot/share/compiler/compilerDefinitions.cpp
      @@ -545,7 +545,7 @@ bool CompilerConfig::check_args_consistency(bool status) {
             FLAG_SET_DEFAULT(SegmentedCodeCache, false);
           }
       #if INCLUDE_JVMCI
      - if (EnableJVMCI) {
      + if (EnableJVMCI || UseJVMCICompiler) {
             if (!FLAG_IS_DEFAULT(EnableJVMCI) || !FLAG_IS_DEFAULT(UseJVMCICompiler)) {
               warning("JVMCI Compiler disabled due to -Xint.");
             }

            dnsimon Douglas Simon
            dnsimon Douglas Simon
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: