forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitbb65cb8
committed
Use __sync_lock_test_and_set() for spinlocks on ARM, if available.
Historically we've used the SWPB instruction for TAS() on ARM, but thisis deprecated and not available on ARMv6 and later. Instead, make useof a GCC builtin if available. We'll still fall back to SWPB if not,so as not to break existing ports using older GCC versions.Eventually we might want to try using __sync_lock_test_and_set() on someother architectures too, but for now that seems to present only risk andnot reward.Back-patch to all supported versions, since people might want to use anyof them on more recent ARM chips.Martin Pitt1 parent1f996ad commitbb65cb8
File tree
4 files changed
+102
-2
lines changed- src/include
- storage
4 files changed
+102
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22108 | 22108 | | |
22109 | 22109 | | |
22110 | 22110 | | |
| 22111 | + | |
| 22112 | + | |
| 22113 | + | |
| 22114 | + | |
| 22115 | + | |
| 22116 | + | |
| 22117 | + | |
| 22118 | + | |
| 22119 | + | |
| 22120 | + | |
| 22121 | + | |
| 22122 | + | |
| 22123 | + | |
| 22124 | + | |
| 22125 | + | |
| 22126 | + | |
| 22127 | + | |
| 22128 | + | |
| 22129 | + | |
| 22130 | + | |
| 22131 | + | |
| 22132 | + | |
| 22133 | + | |
| 22134 | + | |
| 22135 | + | |
| 22136 | + | |
| 22137 | + | |
| 22138 | + | |
| 22139 | + | |
| 22140 | + | |
| 22141 | + | |
| 22142 | + | |
| 22143 | + | |
| 22144 | + | |
| 22145 | + | |
| 22146 | + | |
| 22147 | + | |
| 22148 | + | |
| 22149 | + | |
| 22150 | + | |
| 22151 | + | |
| 22152 | + | |
| 22153 | + | |
| 22154 | + | |
| 22155 | + | |
| 22156 | + | |
| 22157 | + | |
| 22158 | + | |
| 22159 | + | |
| 22160 | + | |
| 22161 | + | |
| 22162 | + | |
| 22163 | + | |
| 22164 | + | |
| 22165 | + | |
| 22166 | + | |
| 22167 | + | |
| 22168 | + | |
| 22169 | + | |
| 22170 | + | |
| 22171 | + | |
| 22172 | + | |
| 22173 | + | |
| 22174 | + | |
| 22175 | + | |
22111 | 22176 | | |
22112 | 22177 | | |
22113 | 22178 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1403 | 1403 | | |
1404 | 1404 | | |
1405 | 1405 | | |
| 1406 | + | |
| 1407 | + | |
| 1408 | + | |
| 1409 | + | |
| 1410 | + | |
| 1411 | + | |
| 1412 | + | |
| 1413 | + | |
| 1414 | + | |
| 1415 | + | |
| 1416 | + | |
1406 | 1417 | | |
1407 | 1418 | | |
1408 | 1419 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
173 | 173 | | |
174 | 174 | | |
175 | 175 | | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
176 | 179 | | |
177 | 180 | | |
178 | 181 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
252 | 252 | | |
253 | 253 | | |
254 | 254 | | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
255 | 261 | | |
256 | 262 | | |
257 | 263 | | |
258 | | - | |
259 | | - | |
260 | 264 | | |
261 | 265 | | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
262 | 282 | | |
263 | 283 | | |
264 | 284 | | |
| |||
272 | 292 | | |
273 | 293 | | |
274 | 294 | | |
| 295 | + | |
275 | 296 | | |
276 | 297 | | |
277 | 298 | | |
| |||
0 commit comments
Comments
(0)