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

Test CriticalNativeArgs.java and CriticalNativeArgs.java assert

XMLWordPrintable

      Test CriticalNativeArgs.java and CriticalNativeArgs.java assert
      Every once in a while we see these tests running into an assertion:

      # Internal Error (...\jdk17u-dev\src\hotspot\share\code\nmethod.cpp:1901), pid=723444, tid=738988
      # assert(allow_dead || is_alive()) failed: should not call follow on dead nmethod

      This happens only with CriticalNatives in our nighlty tests.
      The assertion was removed in 20 by "8290025: Remove the Sweeper"

      As CriticalJNINatives are removed in later releases, this does not apply to them.

      We saw this on:
      2023/7/11 CriticalNativeArgs.java#id1 windows x86_64
      2022/11/22 CriticalNativeStress.java#id1 mac x86_64
      2023/8/16 CriticalNativeArgs.java#id1 mac x86_64
      2022/6/2 CriticalNativeStress.java#id1 linux x86_64
      2022/2/23 CriticalNativeStress.java#id1 mac x86_64

      See also
      JDK-8233343: Deprecate -XX:+CriticalJNINatives flag which implements JavaCritical native functions
      JDK-8258192: Obsolete the CriticalJNINatives flag

            Unassigned Unassigned
            goetz Goetz Lindenmaier
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: