[jdk17u-dev] Integrated: 8229147: Linux os::create_thread() overcounts guardpage size with newer glibc (>=2.27)

Martin Doerr mdoerr at openjdk.org
Fri Jun 23 13:13:08 UTC 2023


On Thu, 22 Jun 2023 14:34:18 GMT, Martin Doerr <mdoerr at openjdk.org> wrote:

> Backport of [JDK-8229147](https://bugs.openjdk.org/browse/JDK-8229147). It's basically clean. There are only differences in the removed code and comments:
> 
> 
> < -GetMinStack _get_minstack_func = nullptr;
> ---
>> -GetMinStack _get_minstack_func = NULL;
> 
> 
> 
> < -                       _get_minstack_func == nullptr ? "failed" : "succeeded");
> ---
>> -                       _get_minstack_func == NULL ? "failed" : "succeeded");
> 
> 
> 
> < -  // In glibc versions prior to 2.27 the guard size mechanism
> ---
>> -  // In glibc versions prior to 2.7 the guard size mechanism
> 
> 
> 
> < -  // stack_size by the size of the guard pages to mimic proper
> ---
>> -  // stack_size by the size of the guard pages to mimick proper

This pull request has now been integrated.

Changeset: 832707ba
Author:    Martin Doerr <mdoerr at openjdk.org>
URL:       https://git.openjdk.org/jdk17u-dev/commit/832707ba96296d69e3c6ffb150047d4b4b196e03
Stats:     86 lines in 3 files changed: 49 ins; 20 del; 17 mod

8229147: Linux os::create_thread() overcounts guardpage size with newer glibc (>=2.27)

Reviewed-by: mbaesken
Backport-of: 9ebcda2165c42e3f7b82a9ae8074badb69c0d270

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

PR: https://git.openjdk.org/jdk17u-dev/pull/1489


More information about the jdk-updates-dev mailing list