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

aotClassLinking/BulkLoaderTest.java fails if VM options are incompatible

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P3 P3
    • 25
    • 24
    • hotspot

      test/hotspot/jtreg/runtime/cds/appcds/aotClassLinking/BulkLoaderTest.java tests the -XX:+AOTClassLinking flag. It fails if the test is executed with vm options that are incompatible with -XX:+AOTClassLinking. E.g.:

      $ jtreg -vmoption:--illegal-native-access=warn BulkLoaderTest.java
      ...
      Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: Expected to get exit value of [1], exit value is: [0]

      ====
      Proposed fix:

      Skip the test if the VM options are found to be incompatible with -XX:+AOTClassLinking

            iklam Ioi Lam
            iklam Ioi Lam
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: