Commit f8f1430a authored by Andres Freund's avatar Andres Freund

Enable 64 bit atomics on ARM64.

Previously they were disabled due to performance concerns on 32bit
arm, where 64bit atomics are often implemented via kernel traps.

Author: Roman Shaposhnik
Discussion: http://postgr.es/m/CA+ULb+uErkFuXUCCXWHYvnV5KnAyjGUzzRcPA-M0cgO+Hm4RSA@mail.gmail.com
parent f39ddd84
...@@ -18,8 +18,9 @@ ...@@ -18,8 +18,9 @@
#endif #endif
/* /*
* 64 bit atomics on arm are implemented using kernel fallbacks and might be * 64 bit atomics on ARM32 are implemented using kernel fallbacks and thus
* slow, so disable entirely for now. * might be slow, so disable entirely. On ARM64 that problem doesn't exist.
* XXX: We might want to change that at some point for AARCH64
*/ */
#if !defined(__aarch64__) && !defined(__aarch64)
#define PG_DISABLE_64_BIT_ATOMICS #define PG_DISABLE_64_BIT_ATOMICS
#endif /* __aarch64__ || __aarch64 */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment