|
25 | 25 | #definepg_compiler_barrier_impl()__compiler_barrier()
|
26 | 26 |
|
27 | 27 | #ifndefpg_memory_barrier_impl
|
28 |
| -#definepg_memory_barrier_impl()__machine_rw_barrier() |
29 |
| -#endif |
30 |
| -#ifndefpg_read_barrier_impl |
31 | 28 | /*
|
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/ |
33 | 30 | * membar #StoreStore | #LoadStore | #StoreLoad | #LoadLoad on x86/sparc
|
34 | 31 | * respectively.
|
35 | 32 | */
|
| 33 | +#definepg_memory_barrier_impl()__machine_rw_barrier() |
| 34 | +#endif |
| 35 | +#ifndefpg_read_barrier_impl |
36 | 36 | #definepg_read_barrier_impl()__machine_r_barrier()
|
37 | 37 | #endif
|
38 | 38 | #ifndefpg_write_barrier_impl
|
|