Skip to content

Commit 747ca66

Browse files
committed
Use "mb" not the nonexistent "rmb" for pg_read_barrier() on Alpha.
It's only necessary to fix this in 9.4; later versions don't have this code (because we ripped out Alpha support entirely), while earlier ones aren't actually using pg_read_barrier() anywhere. Per rather belated report from Christoph Berg.
1 parent 3da9c06 commit 747ca66

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/include/storage/barrier.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ extern slock_t dummy_spinlock;
117117
* read barrier to cover that case. We might need to add that later.
118118
*/
119119
#define pg_memory_barrier() __asm__ __volatile__ ("mb" : : : "memory")
120-
#define pg_read_barrier() __asm__ __volatile__ ("rmb" : : : "memory")
120+
#define pg_read_barrier() __asm__ __volatile__ ("mb" : : : "memory")
121121
#define pg_write_barrier() __asm__ __volatile__ ("wmb" : : : "memory")
122122
#elif defined(__hppa) || defined(__hppa__) /* HP PA-RISC */
123123

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