Skip to content

Commit 07cb8b0

Browse files
committed
Replace ia64 S_UNLOCK compiler barrier with a full memory barrier.
_Asm_sched_fence() is just a compiler barrier, not a memory barrier. But spinlock release on IA64 needs, at the very least, release semantics. Use a full barrier instead. This might be the cause for the occasional failures on buildfarm member anole. Discussion: 20150629101108.GB17640@alap3.anarazel.de
1 parent c5e5d44 commit 07cb8b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/include/storage/s_lock.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -806,7 +806,7 @@ typedef unsigned int slock_t;
806806
/* On IA64, it's a win to use a non-locking test before the xchg proper */
807807
#define TAS_SPIN(lock) (*(lock) ? 1 : TAS(lock))
808808
#define S_UNLOCK(lock) \
809-
do { _Asm_sched_fence(); (*(lock)) = 0; } while (0)
809+
do { _Asm_mf(); (*(lock)) = 0; } while (0)
810810

811811
#endif /* HPUX on IA64, non gcc */
812812

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy