[Pkg-mono-svn-commits] [mono] 20/23: Use slow 64-bit cmpxchg for 32-bit ARM, MIPS, and PowerPC.

Jo Shields directhex at alioth.debian.org
Wed Oct 23 22:14:32 UTC 2013


This is an automated email from the git hooks/post-receive script.

directhex pushed a commit to branch master-experimental-patches/atomics_support_on_fringe_32bit_platforms
in repository mono.

commit bfe9881397d4c41980d4405830b4075418a8f147
Author: Alex Rønne Petersen <alexrp at xamarin.com>
Date:   Fri Oct 18 02:26:58 2013 +0200

    Use slow 64-bit cmpxchg for 32-bit ARM, MIPS, and PowerPC.
    
    GCC doesn't provide a 64-bit __sync_val_compare_and_swap intrinsic
    for these architectures.
    (cherry picked from commit 1b9ca03c22742450102f5c9c53eb953365212973)
---
 mono/utils/atomic.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mono/utils/atomic.h b/mono/utils/atomic.h
index bf7f559..f701a44 100755
--- a/mono/utils/atomic.h
+++ b/mono/utils/atomic.h
@@ -121,7 +121,7 @@ static inline void InterlockedWrite(volatile gint32 *dst, gint32 val)
 	InterlockedExchange (dst, val);
 }
 
-#if defined (TARGET_OSX)
+#if defined (TARGET_OSX) || defined (__arm__) || (defined (__mips__) && !defined (__mips64)) || (defined (__powerpc__) && !defined (__powerpc64__))
 #define BROKEN_64BIT_ATOMICS_INTRINSIC 1
 #endif
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mono/packages/mono.git



More information about the Pkg-mono-svn-commits mailing list