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

NativeLibraryTest.java fails intermittently, unloaded count is not same as expected

    XMLWordPrintable

Details

    Description

      java/lang/ClassLoader/nativeLibrary/NativeLibraryTest.java fails intermittently:

      #section:main
      ----------messages:(4/199)----------
      command: main -Xcheck:jni NativeLibraryTest
      reason: User specified action: run main/othervm/native -Xcheck:jni NativeLibraryTest
      Mode: othervm [/othervm specified]
      elapsed time (seconds): 2.248
      ----------configuration:(0/0)----------
      ----------System.out:(0/0)----------
      ----------System.err:(13/850)----------
      java.lang.RuntimeException: Expected unloaded=4 but got=3
      at NativeLibraryTest.main(NativeLibraryTest.java:65)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.base/java.lang.reflect.Method.invoke(Method.java:564)
      at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:115)
      at java.base/java.lang.Thread.run(Thread.java:842)

      Attachments

        Issue Links

          Activity

            People

              bchristi Brent Christian
              amlu Amy Lu (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              11 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: