We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5afd748 commit e43ad71Copy full SHA for e43ad71
ext/concurrent/atomic_reference.c
@@ -7,6 +7,16 @@
7
/*#include <libkern/OSAtomic.h>*/
8
/*#endif*/
9
10
+/*
11
+Following the wisdom of postgres, we opt to use platform specific memory barriers when available.
12
+These are generally more performant. In this PR, we add specific cases for i386, x86_64.
13
+
14
+In the future, we could look at using pg's atomics library directly:
15
+https://github.com/postgres/postgres/tree/9d4649ca49416111aee2c84b7e4441a0b7aa2fac/src/include/port/atomics
16
17
+Point of contact @ianks
18
+*/
19
20
#include "atomic_reference.h"
21
22
#if (defined(__i386__) || defined(__i386)) && (defined(__GNUC__) || defined(__INTEL_COMPILER))
0 commit comments