Content-Length: 272031 | pFad | http://github.com/postgrespro/postgres/commit/93be0950070b5bcb22600cb1cbb62f93c058a5dd

1A Move comment about sun cc's __machine_rw_barrier being a full barrier. · postgrespro/postgres@93be095 · GitHub
Skip to content

Commit 93be095

Browse files
committed
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
1 parent 17eaae9 commit 93be095

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/include/port/atomics/generic-sunpro.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,14 @@
2525
#define pg_compiler_barrier_impl() __compiler_barrier()
2626

2727
#ifndef pg_memory_barrier_impl
28-
# define pg_memory_barrier_impl() __machine_rw_barrier()
29-
#endif
30-
#ifndef pg_read_barrier_impl
3128
/*
32-
* Despite the name this is actually a full barrier. Expanding to mfence and
29+
* Despite the name this is actually a full barrier. Expanding to mfence/
3330
* membar #StoreStore | #LoadStore | #StoreLoad | #LoadLoad on x86/sparc
3431
* respectively.
3532
*/
33+
# define pg_memory_barrier_impl() __machine_rw_barrier()
34+
#endif
35+
#ifndef pg_read_barrier_impl
3636
# define pg_read_barrier_impl() __machine_r_barrier()
3737
#endif
3838
#ifndef pg_write_barrier_impl

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/93be0950070b5bcb22600cb1cbb62f93c058a5dd

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy