Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit07cb8b0

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. Butspinlock release on IA64 needs, at the very least, releasesemantics. Use a full barrier instead.This might be the cause for the occasional failures on buildfarm memberanole.Discussion: 20150629101108.GB17640@alap3.anarazel.de
1 parentc5e5d44 commit07cb8b0

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
#defineTAS_SPIN(lock)(*(lock) ? 1 : TAS(lock))
808808
#defineS_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)

[8]ページ先頭

©2009-2025 Movatter.jp