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

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

XMLWordPrintable

    • gc
    • b06

        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(...);
            }
        ```

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

                Created:
                Updated:
                Resolved: