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

ProcessTools.java should wait until vthread is completed before checking exceptions

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 21
    • 21
    • hotspot
    • None
    • b22

      Test java/foreign/enablenativeaccess/TestEnableNativeAccessDynamic.java
      fails when executed with virtual thread factory.

      It is a known problem that virtual threads that they doesn't support permissions.

      To reproduce run:
      make -- run-test JTREG_VERBOSE=all JTREG_RETAIN=all JTREG_TEST_THREAD_FACTORY=Virtual TEST=java/foreign/enablenativeaccess/TestEnableNativeAccessDynamic.java

      The outpu of process:
      java -cp .. -ea -esa --enable-preview --enable-native-access=ALL-UNNAMED jdk.test.lib.process.ProcessTools Virtual NativeAccessDynamicMain /home/lmesnik/ws/jdk-8307307/build/linux-x64/test-support/jtreg_open_test_jdk_java_foreign_enablenativeaccess/classes/0/java/foreign/enablenativeaccess/TestEnableNativeAccessDynamic.d/modules panama_module/org.openjdk.foreigntest.PanamaMainDirect false panama_enable_native_access_fail
      Trying to get Linker

      There is no expected exception while also no output for further actions.

            lmesnik Leonid Mesnik
            lmesnik Leonid Mesnik
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: