This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: thread heap leak?
* David Muse:
> Is there a case where they wouldn't be reused, or where the VIRT might
> grow to 2G or more before they are? I think that's what I'm seeing.
> Those heaps pile up until the VIRT is about 2G, then the app crashes.
If you create 32 threads which make some long-term allocations and
then exit, without creating new threads, there will be 32 such heaps,
occupying 2 GiB of address space. They will only get reused if you
create new threads.