diff options
author | Rickard Green <[email protected]> | 2010-06-01 13:52:51 +0000 |
---|---|---|
committer | Erlang/OTP <[email protected]> | 2010-06-01 13:52:51 +0000 |
commit | 9e57c65cac4dd1c26db98bfc8d0295cbc39a28e9 (patch) | |
tree | 172c9aa935fbbed8b17fed9c8e94453c6f5da0fb /erts/include/internal/ethread.h | |
parent | e9ffa6bab3583a4ddabe4f41218579503c8d4b95 (diff) | |
download | otp-9e57c65cac4dd1c26db98bfc8d0295cbc39a28e9.tar.gz otp-9e57c65cac4dd1c26db98bfc8d0295cbc39a28e9.tar.bz2 otp-9e57c65cac4dd1c26db98bfc8d0295cbc39a28e9.zip |
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.
Diffstat (limited to 'erts/include/internal/ethread.h')
-rw-r--r-- | erts/include/internal/ethread.h | 4 |
1 files changed, 2 insertions, 2 deletions
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 { |