This is the mail archive of the
libc-ports@sources.redhat.com
mailing list for the libc-ports project.
Re: [parisc-linux] Re: NPTL for hppa-linux is not backwards compatible with Linuxthreads.
- From: Roland McGrath <roland at redhat dot com>
- To: "Carlos O'Donell" <carlos at systemhalted dot org>
- Cc: libc-ports at sourceware dot org, debian-glibc at lists dot debian dot org, parisc-linux <parisc-linux at lists dot parisc-linux dot org>
- Date: Fri, 23 Feb 2007 17:56:07 -0800 (PST)
- Subject: Re: [parisc-linux] Re: NPTL for hppa-linux is not backwards compatible with Linuxthreads.
> Unfortunatly, due to alignment the NPTL pthread_cond_t grows larger
> than the Linuxthreads version when I add the padding. This is the only
> structure the grows larger in size than before. Is there any way I can
> avoid adding the padding?
It looks to me like you have one word to spare. That's all you really
need. That word will only ever be 1 from old PTHREAD_COND_INITIALIZER.
Checking all three padding words is really just paranoia trying to
distinguish clobbered structs from old initialized data.
Thanks,
Roland