forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commita011dc3
committed
Require compiler barrier support.
Previously we had a fallback implementation of pg_compiler_barrier()that called an empty function across a translation unit boundary so thecompiler couldn't see what it did. That shouldn't be needed on anycurrent systems, and might not even work with a link time optimizer.Since we now require compiler-specific knowledge of how to implementatomics, we should also know how to implement compiler barriers on ahypothetical new system.Reviewed-by: Heikki Linnakangas <hlinnaka@iki.fi>Suggested-by: Andres Freund <andres@anarazel.de>Discussion:https://postgr.es/m/721bf39a-ed8a-44b0-8b8e-be3bd81db748%40technowledgy.deDiscussion:https://postgr.es/m/3351991.1697728588%40sss.pgh.pa.us1 parent8138526 commita011dc3
File tree
3 files changed
+3
-23
lines changed- src
- backend/port
- include/port
- atomics
3 files changed
+3
-23
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
40 | 40 |
| |
41 | 41 |
| |
42 | 42 |
| |
43 |
| - | |
44 |
| - | |
45 |
| - | |
46 |
| - | |
47 |
| - | |
48 |
| - | |
49 |
| - | |
50 |
| - | |
51 | 43 |
| |
52 | 44 |
| |
53 | 45 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
98 | 98 |
| |
99 | 99 |
| |
100 | 100 |
| |
| 101 | + | |
| 102 | + | |
| 103 | + | |
101 | 104 |
| |
102 | 105 |
| |
103 | 106 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
33 | 33 |
| |
34 | 34 |
| |
35 | 35 |
| |
36 |
| - | |
37 |
| - | |
38 |
| - | |
39 |
| - | |
40 |
| - | |
41 |
| - | |
42 |
| - | |
43 |
| - | |
44 |
| - | |
45 |
| - | |
46 |
| - | |
47 |
| - | |
48 |
| - | |
49 |
| - | |
50 |
| - | |
51 | 36 |
| |
52 | 37 |
| |
53 | 38 |
| |
|
0 commit comments
Comments
(0)