Integrated: 8335167: Test runtime/Thread/TestAlwaysPreTouchStacks.java failed with Expected a higher ratio between stack committed and reserved

Afshin Zafari azafari at openjdk.org
Tue Sep 24 07:58:43 UTC 2024


On Fri, 9 Aug 2024 18:10:57 GMT, Afshin Zafari <azafari at openjdk.org> wrote:

> The test program runs once with PreTouch and another without PreTouch stacks. For each run the amounts of reserved and committed stack regions are held and then compared the ratio of with and without PreTouch. The ratio of PreTouch test should be greater than the other (because there will be higher committed regions due to pre-touching the pages).
> 
> In other words, the old version of this test ran two tests: 1) `preTouchTest` and 2) `noPreTouchTest` and extracted the amount of reserved and committed memory for stack. The ratio of the committed to reserved for preTouchTest ($ratio = \frac{committed}{reserved}$) is expected to be high (>75%) and for the noPreTouchTest is expected to be small (<50%). These expected amounts are not robust for all cases and resulted in 8335167.
> 
> In this PR, only one test is run with two sets of options for preTouch and noPreTouch stack memory. The amount of reserved and committed are stored after each run and the ratio of two runs are compared. It is expected that the preTouch has a greater ratio than the noPreTouch (`preTouch.ratio > noPreTouch.ratio`). 
> 
> ### Tests
> The specific test is run on linux-x64, windows-x64 and macosx-aarch64 in tiers1-5 (100+ times).

This pull request has now been integrated.

Changeset: e60e8821
Author:    Afshin Zafari <azafari at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/e60e8821568a74269340417fece2acb71f633098
Stats:     159 lines in 2 files changed: 69 ins; 71 del; 19 mod

8335167: Test runtime/Thread/TestAlwaysPreTouchStacks.java failed with Expected a higher ratio between stack committed and reserved

Reviewed-by: stuefe, dholmes, gziemski

-------------

PR: https://git.openjdk.org/jdk/pull/20531


More information about the hotspot-runtime-dev mailing list