RFR: 8324781: runtime/Thread/TestAlwaysPreTouchStacks.java failed with Expected a higher ratio between stack committed and reserved [v10]
Patrick Zhang
qpzhang at openjdk.org
Sun Jun 9 01:40:33 UTC 2024
On Fri, 7 Jun 2024 09:52:37 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 versions of kernels first, and checking the availability of MADV_POPULATE_WRITE when they are not older than 5.14.
>
> Liming Liu has updated the pull request incrementally with one additional commit since the last revision:
>
> Guard more madv numbers
FYI,
https://github.com/oracle/linux-uek/issues/23 has recently fixed the madv flag conflict issue, at the three concerned branches: `UEK7U2`, `UEK6U3`, and `UEK5U5`.
- #define MADV_DOEXEC 22 /* do inherit across exec */
- #define MADV_DONTEXEC 23 /* don't inherit across exec */
+ #define MADV_DOEXEC 201 /* do inherit across exec */
+ #define MADV_DONTEXEC 202 /* don't inherit across exec */
[uek7/u2](https://github.com/oracle/linux-uek/commits/uek7/u2/include/uapi/asm-generic/mman-common.h): https://github.com/oracle/linux-uek/commit/606472268c9ca1edb06b3f0e17477a6b8f229c29
[uek6/u3](https://github.com/oracle/linux-uek/commits/uek6/u3/include/uapi/asm-generic/mman-common.h): https://github.com/oracle/linux-uek/commit/b5974a18d78ec21bc75107b15f8fff8ccb81d19f
[uek5/u5](https://github.com/oracle/linux-uek/commits/uek5/u5/include/uapi/asm-generic/mman-common.h): https://github.com/oracle/linux-uek/commit/818b8c8d7993659f12e5254067de2eed5519a349
-------------
PR Comment: https://git.openjdk.org/jdk/pull/18592#issuecomment-2156262397
More information about the hotspot-gc-dev
mailing list