This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [patch] Fix for BZ 22207 -- intermittent failure to create threads on 32-bit machines
- From: "H.J. Lu" <hjl dot tools at gmail dot com>
- To: Paul Pluzhnikov <ppluzhnikov at google dot com>
- Cc: GLIBC Devel <libc-alpha at sourceware dot org>
- Date: Mon, 25 Sep 2017 17:46:37 -0700
- Subject: Re: [patch] Fix for BZ 22207 -- intermittent failure to create threads on 32-bit machines
- Authentication-results: sourceware.org; auth=none
- References: <CALoOobOc1oypj=cDpFHoL-bCJ8qC9aEPB6RnbSQ7=umAWp4KHw@mail.gmail.com>
On 9/25/17, Paul Pluzhnikov <ppluzhnikov@google.com> wrote:
> Greetings,
>
> In stdlib/test-{atexit,at_quick_exit,cxa_atexit,on_exit} tests, I am
> creating 1024 new threads.
>
> With default 8MiB Linux thread stack size, if all threads are alive at
> the same time, this would require 8GiB of VM, which is a bit of a
> problem on 32-bit machines.
>
> Attached patch reduces total VM space required for all threads to 128MiB.
>
> Proposed commit message:
>
> ---
> Reduce total memory required to create all threads to 128MiB.
>
> This fixes intermittent failure in
> stdlib/test-{atexit,at_quick_exit,cxa_atexit,on_exit} tests (Bug
> 22207).
> ---
>
This is OK.
Thanks.
--
H.J.