[patch] Fix for BZ 22207 -- intermittent failure to create threads on 32-bit machines

H.J. Lu hjl.tools@gmail.com
Tue Sep 26 00:46:00 GMT 2017


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.



More information about the Libc-alpha mailing list