This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java 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: Allow non-arithmetic type for pthread_t


Boehm, Hans wrote:

>This patch gets fairly ugly on Itanium, where you really want a
>store-with-release semantics to implement the second write.  A barrier is
>more expensive, and unnecessary here.  
>

Yep. The comment in the IA64 release_set says that simply storing to a 
volatile should imply release semantics, so the correct "write_barrier" 
here for IA64 would simply be nothing provided the field being stored to 
is volatile. The problem is how to write a generic release_set which can 
work for stores to different sized fields. I think doing autoconf stuff 
here is more effort than its worth, especially given that we currently 
only use this code on x86/PowerPC.

regards

Bryce.



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