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

Some CDS tests need to use @requires vm.flagless

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 21
    • 21
    • hotspot
    • b24

      CDS requires certain flags (e.g., ObjectAlignmentInBytes) to be the same between dump time and run time, or else the CDS archive will fail to load.

      Almost all CDS tests generate their own archive files. Therefore, any flags specified via JTREG (e.g., with -vmoptions) will apply to both the dump time and run time. Therefore, even if -vmoptions includes flags like ObjectAlignmentInBytes, the tests will continue to work.

      However, some tests fail with -vmoptions:-XX:ObjectAlignmentInBytes=16. We need to investigate why. They probably have a more strict requirement on the command-line options and might need to be tagged with "@requires vm.flagless"

      - runtime/cds/appcds/cacheObject/DifferentHeapSizes.java
      - runtime/cds/appcds/DumpingWithNoCoops.java
      - runtime/cds/appcds/sharedStrings/IncompatibleOptions.java

            ccheung Calvin Cheung
            iklam Ioi Lam
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: