mirror of
https://github.com/postgres/postgres.git
synced 2025-05-06 19:59:18 +03:00
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
This commit is contained in:
parent
17eaae9897
commit
93be095007
@ -25,14 +25,14 @@
|
|||||||
#define pg_compiler_barrier_impl() __compiler_barrier()
|
#define pg_compiler_barrier_impl() __compiler_barrier()
|
||||||
|
|
||||||
#ifndef pg_memory_barrier_impl
|
#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
|
* membar #StoreStore | #LoadStore | #StoreLoad | #LoadLoad on x86/sparc
|
||||||
* respectively.
|
* respectively.
|
||||||
*/
|
*/
|
||||||
|
# define pg_memory_barrier_impl() __machine_rw_barrier()
|
||||||
|
#endif
|
||||||
|
#ifndef pg_read_barrier_impl
|
||||||
# define pg_read_barrier_impl() __machine_r_barrier()
|
# define pg_read_barrier_impl() __machine_r_barrier()
|
||||||
#endif
|
#endif
|
||||||
#ifndef pg_write_barrier_impl
|
#ifndef pg_write_barrier_impl
|
||||||
|
Loading…
x
Reference in New Issue
Block a user