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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy