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] Remove atomic_compare_and_exchange_bool_rel.


Hello, Torvald

Sorry for the late.

Currently we did not use the latest glibc version. 
So I port your patch (and other two patches it depends) to the eglibc 2.15 version for verification on PowerPC e6500, 
because at first we found the segmentation issue on PowerPC E6500 under eglibc 2.15 , and it seems ok.

Considering the reason resulted in the segmentation fault is that atomic_compare_and_exchange_bool_rel is defined as
atomic_compare_and_exchange_bool_acq, after using your patch, it will call the atomic_compare_and_exchange_val_rel finally
(USE_ATOMIC_COMPILER_BUILTINS was defined to 0 on powerpc), which could fix the issue I meet before.


Regards
Lei

-----Original Message-----
From: Torvald Riegel [mailto:triegel@redhat.com] 
Sent: Tuesday, June 14, 2016 9:36 PM
To: GLIBC Devel
Cc: Lei Xu
Subject: [PATCH] Remove atomic_compare_and_exchange_bool_rel.

Removing this operation and the matching (unused) catomic_ operation seemed to be easier than fixing powerpc's definition of it, only for it to be removed anyway in the future.  There were just three call sites of it.

Tested on x86_64-linux.  Lei Xu, could you test on Power?


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