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

Test EnableNativeAccessCDS.java fails with TEST_THREAD_FACTORY=Virtual

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 24
    • 24
    • hotspot
    • 24
    • b27
    • generic
    • generic

      The newly added test runtime/cds/appcds/jigsaw/module/EnableNativeAccessCDS.java fails, the test log snippet:
      [STDERR]
      Error: --enable-native-access requires modules to be specified

      [2024-12-04T08:29:52.487783324Z] Waiting for completion for process 654635
      [2024-12-04T08:29:52.487926657Z] Waiting for completion finished for process 654635
      STDERR:
       stdout: [];
       stderr: [Error: --enable-native-access requires modules to be specified
      ]
       exitValue = 1

      java.lang.RuntimeException: 'Loading classes to share' missing from stdout/stderr
      at jdk.test.lib.process.OutputAnalyzer.shouldContain(OutputAnalyzer.java:253)
      at jdk.test.lib.cds.CDSTestUtils.checkBaseDump(CDSTestUtils.java:300)
      at TestCommon.dumpBaseArchive(TestCommon.java:154)
      at EnableNativeAccessCDS.main(EnableNativeAccessCDS.java:47)

            matsaave Matias Saavedra Silva
            syan Sendao Yan
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: