forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit83aadbe
committed
Require memory barrier support.
Previously we had a fallback implementation that made a harmless systemcall, based on the assumption that system calls must contain a memorybarrier. That shouldn't be reached on any current system, and it seemshighly likely that we can easily find out how to request explicit memorybarriers, if we've already had to find out how to do atomics on ahypothetical new system.Removed comments and a function name referred to a spinlock used forfallback memory barriers, but that changed in1b468a1, which left somemisleading words behind in a few places.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 parenta011dc3 commit83aadbe
File tree
4 files changed
+4
-49
lines changed- src
- backend/port
- include/port
- atomics
4 files changed
+4
-49
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
17 | 17 |
| |
18 | 18 |
| |
19 | 19 |
| |
20 |
| - | |
21 |
| - | |
22 |
| - | |
23 |
| - | |
24 |
| - | |
25 |
| - | |
26 |
| - | |
27 |
| - | |
28 |
| - | |
29 |
| - | |
30 |
| - | |
31 |
| - | |
32 |
| - | |
33 |
| - | |
34 |
| - | |
35 |
| - | |
36 |
| - | |
37 |
| - | |
38 |
| - | |
39 |
| - | |
40 |
| - | |
41 |
| - | |
42 |
| - | |
43 | 20 |
| |
44 | 21 |
| |
45 | 22 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
101 | 101 |
| |
102 | 102 |
| |
103 | 103 |
| |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
104 | 108 |
| |
105 | 109 |
| |
106 | 110 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
17 | 17 |
| |
18 | 18 |
| |
19 | 19 |
| |
20 |
| - | |
21 |
| - | |
22 |
| - | |
23 |
| - | |
24 |
| - | |
25 |
| - | |
26 |
| - | |
27 |
| - | |
28 |
| - | |
29 |
| - | |
30 |
| - | |
31 |
| - | |
32 |
| - | |
33 |
| - | |
34 |
| - | |
35 |
| - | |
36 | 20 |
| |
37 | 21 |
| |
38 | 22 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
135 | 135 |
| |
136 | 136 |
| |
137 | 137 |
| |
138 |
| - | |
139 |
| - | |
140 |
| - | |
141 |
| - | |
142 |
| - | |
143 |
| - | |
144 | 138 |
| |
145 | 139 |
| |
146 | 140 |
| |
147 |
| - | |
148 |
| - | |
149 |
| - | |
150 |
| - | |
151 | 141 |
| |
152 | 142 |
| |
153 | 143 |
| |
|
0 commit comments
Comments
(0)