Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit f8f1430

Browse files
committed
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
1 parent f39ddd8 commit f8f1430

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/include/port/atomics/arch-arm.h

+4-3
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,9 @@
1818
#endif
1919

2020
/*
21-
* 64 bit atomics on arm are implemented using kernel fallbacks and might be
22-
* slow, so disable entirely for now.
23-
* XXX: We might want to change that at some point for AARCH64
21+
* 64 bit atomics on ARM32 are implemented using kernel fallbacks and thus
22+
* might be slow, so disable entirely. On ARM64 that problem doesn't exist.
2423
*/
24+
#if !defined(__aarch64__) && !defined(__aarch64)
2525
#define PG_DISABLE_64_BIT_ATOMICS
26+
#endif /* __aarch64__ || __aarch64 */

0 commit comments

Comments
 (0)