RFR: 8324781: runtime/Thread/TestAlwaysPreTouchStacks.java failed with Expected a higher ratio between stack committed and reserved [v2]

Thomas Stuefe stuefe at openjdk.org
Wed May 22 07:00:16 UTC 2024


On Thu, 21 Mar 2024 06:29:45 GMT, Liming Liu <duke at openjdk.org> wrote:

>> The testcase failed on Oracle CI since JDK-8315923. The root cause is that Oracle CI runs Linux-5.4.17-UEK where the value of MADV_POPULATE_WRITE (23) is used as MADV_DONTEXEC which is not supported by upstream. This PR solves the testcase failure by checking the support of (MADV_POPULATE_WRITE_value + 1) for UEK releases.
>
> Liming Liu has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Remove 8325218 from the problem list

Please reopen this, and just run the test with -XX:-UseMadvPopulateWrite. That should solve the problem for the test, no?

The test's purpose is not to test Oracle Linux' inability to handle madvise flags correctly but to test -XX:+AlwaysPreTouchStacks.

We can and should deal with the Oracle Linux problem independently (Note that I reported the problem to Oracle secalert back in March, and they promised a kernel fix).

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

PR Comment: https://git.openjdk.org/jdk/pull/18417#issuecomment-2124011133


More information about the hotspot-runtime-dev mailing list