This is the mail archive of the
libc-help@sourceware.org
mailing list for the glibc project.
Re: pthread_exit behavior from main
On Thu, Oct 4, 2012 at 9:41 PM, Godmar Back <godmar@gmail.com> wrote:
> On Thu, Oct 4, 2012 at 9:09 PM, Carlos O'Donell <carlos@systemhalted.org> 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.
Cheers,
Carlos.