This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH 1/3] nptl: Add tests for internal pthread_mutex_t offsets


On Thu, Oct 19, 2017 at 2:54 PM, Adhemerval Zanella
<adhemerval.zanella@linaro.org> wrote:
>
>
> On 19/10/2017 19:12, H.J. Lu wrote:
>> On Thu, Oct 19, 2017 at 2:00 PM, Adhemerval Zanella
>>> diff --git a/sysdeps/x86_64/nptl/pthread-offsets.h b/sysdeps/x86_64/nptl/pthread-offsets.h
>>> new file mode 100644
>>> index 0000000..16c6b0d
>>> --- /dev/null
>>> +++ b/sysdeps/x86_64/nptl/pthread-offsets.h
>>> @@ -0,0 +1,5 @@
>>> +#define __PTHREAD_MUTEX_NUSERS_OFFSET   12
>>> +#define __PTHREAD_MUTEX_KIND_OFFSET     16
>>> +#define __PTHREAD_MUTEX_SPINS_OFFSET    20
>>> +#define __PTHREAD_MUTEX_ELISION_OFFSET  22
>>> +#define __PTHREAD_MUTEX_LIST_OFFSET     24
>>> --
>>
>> These are wrong for x32.  You need to add
>>
>> #if __WORDSIZE == 64
>> ...
>
> Right, I used the values which are the one expected to avoid
> ABI breakage.  This indeed will break x32 tests build, but the
> idea is to have at 1/3 and 3/3 patch pushed together (which
> I should have made explicit in patch submission).

No.  1/3 should be backported to 2.26/2.25 branches unchanged.

> If you prefer I can add the __WORDSIZE != 64 value for master
> and  remove it on patch 3/3 or reorganize the patch set to put
> 3/3 before so 1/3 patch won't break the tests build.



-- 
H.J.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]