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

AIX: pthreads created by foreign test library don't work as expected

XMLWordPrintable

        On AIX, the following tests are running into guarantee(result == JNI_OK) failed: Could not attach thread for upcall. JNI error code: -1
        java/foreign/TestUpcallAsync.java
        java/foreign/stackwalk/TestAsyncStackWalk.java#default_gc

        The following tests crash because libLinkerInvokerModule.so::procedure jumps to address 0 (or libLinkerInvokerUnnamed.so):
        java/foreign/loaderLookup/TestLoaderLookupJNI.java
        java/foreign/enablenativeaccess/TestEnableNativeAccessJarManifest.java
        java/foreign/enablenativeaccess/TestEnableNativeAccess.java

        All of these tests use test/lib/native/testlib_threads.h which creates a pthread in run_in_new_thread_and_join.

              varadam Varada M
              mdoerr Martin Doerr
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated:
                Resolved: