Integrated: 8293218: serviceability/tmtools/jstat/GcNewTest.java fails with "Error in the percent calculation"
Kevin Walls
kevinw at openjdk.org
Sat Sep 17 09:59:07 UTC 2022
On Thu, 8 Sep 2022 09:56:05 GMT, Kevin Walls <kevinw at openjdk.org> wrote:
> Test update to cope with heap size changing (shrinking) in the early life of the test app.
>
> A change in GC timing affects this test which reads eden size and heap size. Both eden and heap are likely to shrink initially for this test. Failures were that heap size shrank after reading eden size, such that eden appeared to be >100% of heap.
> Recognising a shrinking heap and retrying resolves this.
>
> (Re-ordering to read heap size then eden would be enough to make the check in provokeGc work. But it would allocate sometimes a very small fraction of the heap, which is not the intent.)
This pull request has now been integrated.
Changeset: cfd44bb2
Author: Kevin Walls <kevinw at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/cfd44bb2cd4f2fdbfc15a7a76757a92c0a557439
Stats: 27 lines in 2 files changed: 19 ins; 3 del; 5 mod
8293218: serviceability/tmtools/jstat/GcNewTest.java fails with "Error in the percent calculation"
8293564: serviceability/tmtools/jstat/GcTest01.java fails with "Error in the percent calculation"
Reviewed-by: sspitsyn, lmesnik, dcubed
-------------
PR: https://git.openjdk.org/jdk/pull/10218
More information about the serviceability-dev
mailing list