From 9e57c65cac4dd1c26db98bfc8d0295cbc39a28e9 Mon Sep 17 00:00:00 2001 From: Rickard Green Date: Tue, 1 Jun 2010 13:52:51 +0000 Subject: OTP-8660 Increase atomic fallback locks The number of spinlocks used when implementing atomic fall-backs when no native atomic implementation is available has been increased from 16 to 1024. --- erts/include/internal/ethread.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'erts/include') diff --git a/erts/include/internal/ethread.h b/erts/include/internal/ethread.h index 9921247a06..4e7a38cd5c 100644 --- a/erts/include/internal/ethread.h +++ b/erts/include/internal/ethread.h @@ -1144,8 +1144,8 @@ ETHR_INLINE_FUNC_NAME_(ethr_write_lock)(ethr_rwlock_t *lock) */ #define ETHR_MEMORY_BARRIER -#define ETHR_ATOMIC_ADDR_BITS 4 -#define ETHR_ATOMIC_ADDR_SHIFT 3 +#define ETHR_ATOMIC_ADDR_BITS 10 +#define ETHR_ATOMIC_ADDR_SHIFT 6 typedef struct { union { -- cgit v1.2.3