This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: New pthread_cond_t and hppa.
- From: Torvald Riegel <triegel at redhat dot com>
- To: Carlos O'Donell <carlos at redhat dot com>
- Cc: GNU C Library <libc-alpha at sourceware dot org>
- Date: Fri, 03 Mar 2017 15:18:48 -1000
- Subject: Re: New pthread_cond_t and hppa.
- Authentication-results: sourceware.org; auth=none
- References: <09f00f66-8b85-bfec-7f39-d0cf9d4e1ed4@redhat.com>
On Fri, 2017-03-03 at 19:37 -0500, Carlos O'Donell wrote:
> Torvald,
>
> On hppa we had no free word to use for the newer expanded
> pthread_cond_t. Since the first four words of pthread_cond_t
> are going to be "1, 1, 1, 1" in legacy applications it looks
> like I need to reserve at least one of these lowest bit values
> for the initializer I use to decide if the old-style structure
> has been converted or not.
>
> What's your take on shaving 1-bit off of __wseq32 or __g1_start32?
That's possible, but __g1_orig_size might be even easier because there
are already accessors to it in pthread_cond_common.c.