pthread_exit behavior from main

Carlos O'Donell
Fri Oct 5 01:51:00 GMT 2012

On Thu, Oct 4, 2012 at 9:41 PM, Godmar Back <> wrote:
> On Thu, Oct 4, 2012 at 9:09 PM, Carlos O'Donell <> wrote:
>> You are seeing the undefined results of reading memory that the
>> runtime has marked with madvise as MADV_DONTNEED.
> Just out of curiosity, why do you madvise it with MADV_DONTNEED rather
> than munmapping it outright?

That's a very good question and I don't have a good answer.

I would not object to someone doing an analysis of the pro's and con's
and posting a patch.

Perhaps there is actually a language or POSIX requirement that I'm not
aware of.


More information about the Libc-help mailing list