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

[TESTBUG] runtime/containers/docker/TestCPUAwareness.java typo of printing parameters (period should be shares)

    XMLWordPrintable

Details

    • b09

    Backports

      Description

        In file test/hotspot/jtreg/runtime/containers/docker/TestCPUAwareness.java, in line 178, `period` should be `shares`.

        The shares parameter means CPU usage weight, and period is used to specify how long the container should be reassigned for CPU usage.

        diff -r f940579715a5 test/hotspot/jtreg/runtime/containers/docker/TestCPUAwareness.java
        --- a/test/hotspot/jtreg/runtime/containers/docker/TestCPUAwareness.java Thu Feb 14 15:27:46 2019 -0800
        +++ b/test/hotspot/jtreg/runtime/containers/docker/TestCPUAwareness.java Fri Feb 15 10:27:59 2019 +0800
        @@ -175,7 +175,7 @@
                 System.out.println("cpuset = " + cpuset);
                 System.out.println("quota = " + quota);
                 System.out.println("period = " + period);
        - System.out.println("shares = " + period);
        + System.out.println("shares = " + shares);
                 System.out.println("usePreferContainerQuotaForCPUCount = " + usePreferContainerQuotaForCPUCount);
                 System.out.println("expectedAPC = " + expectedAPC);

        A patch and reported by Wang Haomin <wanghaomin@loongson.cn>

        Attachments

          Issue Links

            Activity

              People

                dholmes David Holmes
                lzhai Leslie Zhai
                Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: