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

Incorrect log decorators in gc/g1/plab/TestPLABEvacuationFailure.java

    XMLWordPrintable

    Details

    • Subcomponent:
      gc
    • Resolved In Build:
      b06

      Backports

        Description

        This test "Checks PLAB statistics on evacuation failure", but the log decorators used are "-Xlog:gc=debug,gc+phases=trace". Therefore, the logs contain no PLAB related info. However, all checks in this test still pass.

        The essense of all checks is the following, when `logItems` is empty, this method becomes a no-op, skipping all checks.

        ```
            private static void checkValues(Map<Long, PlabInfo> logItems, String errorMessage, boolean expectZero) {
                logItems.entrySet()
                        .forEach(...);
            }
        ```

          Attachments

            Issue Links

              Activity

                People

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

                  Dates

                  Created:
                  Updated:
                  Resolved: