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

YoungPLABSize and OldPLABSize not aligned by ObjectAlignmentInBytes

    XMLWordPrintable

Details

    • gc
    • b18
    • Verified

    Description

      There is no logic checking PLAB sizes are aligned by ObjectAlignmentInBytes at start-up. However, Parallel and G1 assume that's true.

      One can trigger the assertion failure using:

      `make CONF=debug test` ...
      ...
      TEST=gc/InfiniteList.java JTREG="VM_OPTIONS=-XX:+UseParallelGC -XX:YoungPLABSize=4097 -XX:ObjectAlignmentInBytes=16"
      ```
      or
      ```
      TEST=gc/InfiniteList.java JTREG="VM_OPTIONS=-XX:+UseG1GC -XX:-ResizePLAB -XX:YoungPLABSize=4097 -XX:ObjectAlignmentInBytes=16"
      ```

      It's the same problem with `OldPLABSize`.

      Attachments

        Issue Links

          Activity

            People

              ayang Albert Yang
              ayang Albert Yang
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: