This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Re: PATCH: Allow non-arithmetic type for pthread_t
- From: Bryce McKinlay <bryce at waitaki dot otago dot ac dot nz>
- To: "Boehm, Hans" <hans_boehm at hp dot com>
- Cc: rittle at labs dot mot dot com, java-patches at gcc dot gnu dot org
- Date: Thu, 21 Mar 2002 12:24:42 +1200
- Subject: Re: PATCH: Allow non-arithmetic type for pthread_t
- References: <40700B4C02ABD5119F000090278766443BF0C5@hplex1.hpl.hp.com>
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.