Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitf8f1430

Browse files
committed
Enable 64 bit atomics on ARM64.
Previously they were disabled due to performance concerns on 32bitarm, where 64bit atomics are often implemented via kernel traps.Author: Roman ShaposhnikDiscussion:http://postgr.es/m/CA+ULb+uErkFuXUCCXWHYvnV5KnAyjGUzzRcPA-M0cgO+Hm4RSA@mail.gmail.com
1 parentf39ddd8 commitf8f1430

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

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

Lines changed: 4 additions & 3 deletions
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
#definePG_DISABLE_64_BIT_ATOMICS
26+
#endif/* __aarch64__ || __aarch64 */

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp