diff options
author | Andres Freund <andres@anarazel.de> | 2015-01-08 13:08:05 +0100 |
---|---|---|
committer | Andres Freund <andres@anarazel.de> | 2015-01-08 13:08:05 +0100 |
commit | 93be0950070b5bcb22600cb1cbb62f93c058a5dd (patch) | |
tree | 7cc7bda7c44307a517b4acdcb6778f79b4a59c41 /src | |
parent | 17eaae9897781c6dcc622b9327899329e4d2a4df (diff) | |
download | postgresql-93be0950070b5bcb22600cb1cbb62f93c058a5dd.tar.gz postgresql-93be0950070b5bcb22600cb1cbb62f93c058a5dd.zip |
Move comment about sun cc's __machine_rw_barrier being a full barrier.
I'd accidentally written the comment besides the read barrier, instead
of the full barrier, implementation.
Noticed by Oskari Saarenmaa
Diffstat (limited to 'src')
-rw-r--r-- | src/include/port/atomics/generic-sunpro.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/include/port/atomics/generic-sunpro.h b/src/include/port/atomics/generic-sunpro.h index a024c50d646..b756fb979ce 100644 --- a/src/include/port/atomics/generic-sunpro.h +++ b/src/include/port/atomics/generic-sunpro.h @@ -25,14 +25,14 @@ #define pg_compiler_barrier_impl() __compiler_barrier() #ifndef pg_memory_barrier_impl -# define pg_memory_barrier_impl() __machine_rw_barrier() -#endif -#ifndef pg_read_barrier_impl /* - * Despite the name this is actually a full barrier. Expanding to mfence and + * Despite the name this is actually a full barrier. Expanding to mfence/ * membar #StoreStore | #LoadStore | #StoreLoad | #LoadLoad on x86/sparc * respectively. */ +# define pg_memory_barrier_impl() __machine_rw_barrier() +#endif +#ifndef pg_read_barrier_impl # define pg_read_barrier_impl() __machine_r_barrier() #endif #ifndef pg_write_barrier_impl |