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

gc/CriticalNativeArgs.java fails without -XX:-CriticalJNINatives

    XMLWordPrintable

Details

    • gc
    • b26

    Description

      Found this with Zero testing, but the failure is not Zero-specific. It affects platforms that do not have CriticalJNINatives enabled. The issue is that the fallback (non-critical) version of the code calls GetArrayLength on known NULL array.

      $ CONF=linux-x86_64-zero-fastdebug make exploded-test TEST=gc/CriticalNativeArgs.java
      #
      # Internal Error (/home/shade/trunks/jdk/src/hotspot/share/runtime/jniHandles.inline.hpp:91), pid=1909139, tid=1909217
      # assert(handle != __null) failed: JNI handle should not be null

      It was exposed by JDK-8233343 that added the generic test configuration. Before that, the test was only enabled for specific GCs and arches where CriticalJNINatives are known to work.

      Attachments

        Issue Links

          Activity

            People

              shade Aleksey Shipilev
              shade Aleksey Shipilev
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: