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

[TESTBUG] appcds tests with incorrect usage of -XX:+UseStringDeduplication

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 12
    • Fix Version/s: 12
    • Component/s: hotspot
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      b19

      Description

      In JDK-8185531, [TESTBUG] Improve test configuration for shared strings, the @run lines with -XX:+UseStringDeduplication and -XX:-CompactStrings are added:

          * @run main LockSharedStrings
      + * @run main/othervm -XX:+UseStringDeduplication LockSharedStrings
      + * @run main/othervm -XX:-CompactStrings LockSharedStrings

      However, this affects only the "main" program, LockSharedStrings, but has no effect on the child JVM processes launched by the main program. As the real test for cds shared strings happen inside the child processes, these extra options should be passed to the child processes instead.

      The following tests are affected
       test/hotspot/jtreg/runtime/appcds/sharedStrings/ExerciseGC.java
       test/hotspot/jtreg/runtime/appcds/sharedStrings/IncompatibleOptions.java
       test/hotspot/jtreg/runtime/appcds/sharedStrings/InternSharedString.java
       test/hotspot/jtreg/runtime/appcds/sharedStrings/InvalidFileFormat.java
       test/hotspot/jtreg/runtime/appcds/sharedStrings/LargePages.java
       test/hotspot/jtreg/runtime/appcds/sharedStrings/LockSharedStrings.java
       test/hotspot/jtreg/runtime/appcds/sharedStrings/SharedStringsBasic.java
       test/hotspot/jtreg/runtime/appcds/sharedStrings/SharedStringsBasicPlus.java
       test/hotspot/jtreg/runtime/appcds/sharedStrings/SharedStringsStress.java
       test/hotspot/jtreg/runtime/appcds/sharedStrings/SharedStringsUtils.java
       test/hotspot/jtreg/runtime/appcds/sharedStrings/SharedStringsWbTest.java
       test/hotspot/jtreg/runtime/appcds/sharedStrings/SysDictCrash.java

        Attachments

          Activity

            People

            Assignee:
            iklam Ioi Lam
            Reporter:
            iklam Ioi Lam
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: