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

WB_IsIntrinsicAvailable fails if called with wrong compilation level

XMLWordPrintable

      IntrinsicDisabledTest crashes with -XX:TieredStopAtLevel={1,2,3} and -XX:-TieredCompilation

      CompileCommand: DisableIntrinsic jdk/internal/misc/Unsafe.putChar const char* DisableIntrinsic = '_getCharVolatile _getInt'
      CompileCommand: DisableIntrinsic jdk/internal/misc/Unsafe.putCharVolatile const char* DisableIntrinsic = '_getIntVolatile'
      #
      # A fatal error has been detected by the Java Runtime Environment:
      #
      # SIGSEGV (0xb) at pc=[...]

      ...

      # V [libjvm.so+0xff6c9d] WB_IsIntrinsicAvailable+0x25d

      in debug:

      src/hotspot/share/prims/whitebox.cpp:939), [..]
      # assert(comp != nullptr) failed: compiler not available

      -XX:-TieredCompilation -XX:TieredStopAtLevel={1,2,3} implies only C2 is used. The test asks WB for a compilation at level {1,2,3} but there is no C1 compiler available so we crash.

            dskantz Daniel Skantz
            dskantz Daniel Skantz
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: