forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit8ded656
committed
Remove configurability of PPC spinlock assembly code.
Assume that we can use LWARX hint flags and the LWSYNC instructionon any PPC machine. The check on the assembler's behavior was onlyneeded for Apple's old assembler, which is no longer of interestnow that we've de-supported all PPC-era versions of macOS (thanksto them not having clock_gettime()). Also, given an up-to-dateassembler these instructions work even on Apple's old hardware.It seems quite unlikely that anyone would be interested in runningcurrent Postgres on PPC hardware that's so old as to not havethese instructions.Hence, rip out associated configure test and manual configurationoptions, and just use the modernized instructions all the time.Also, update atomics/arch-ppc.h to use these instructions as well.(It was already using LWSYNC unconditionally in another place,providing further proof that nobody is using PG on hardware oldenough to have a problem with that.)Discussion:https://postgr.es/m/166622.1660323391@sss.pgh.pa.us1 parentadee0df commit8ded656
File tree
7 files changed
+26
-115
lines changed- src
- include
- port/atomics
- storage
- tools/msvc
7 files changed
+26
-115
lines changedLines changed: 1 addition & 33 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
15349 | 15349 |
| |
15350 | 15350 |
| |
15351 | 15351 |
| |
15352 |
| - | |
15353 |
| - | |
15354 |
| - | |
15355 |
| - | |
15356 |
| - | |
15357 |
| - | |
15358 |
| - | |
15359 |
| - | |
15360 |
| - | |
15361 |
| - | |
15362 |
| - | |
15363 |
| - | |
15364 |
| - | |
15365 |
| - | |
15366 |
| - | |
15367 |
| - | |
15368 |
| - | |
15369 |
| - | |
15370 |
| - | |
15371 |
| - | |
15372 |
| - | |
15373 |
| - | |
15374 |
| - | |
15375 |
| - | |
15376 |
| - | |
15377 |
| - | |
15378 |
| - | |
15379 |
| - | |
15380 |
| - | |
15381 |
| - | |
15382 |
| - | |
15383 |
| - | |
15384 |
| - | |
| 15352 | + | |
15385 | 15353 |
| |
15386 | 15354 |
| |
15387 | 15355 |
| |
|
Lines changed: 1 addition & 12 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1678 | 1678 |
| |
1679 | 1679 |
| |
1680 | 1680 |
| |
1681 |
| - | |
1682 |
| - | |
1683 |
| - | |
1684 |
| - | |
1685 |
| - | |
1686 |
| - | |
1687 |
| - | |
1688 |
| - | |
1689 |
| - | |
1690 |
| - | |
1691 |
| - | |
1692 |
| - | |
| 1681 | + | |
1693 | 1682 |
| |
1694 | 1683 |
| |
1695 | 1684 |
| |
|
Lines changed: 0 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
349 | 349 |
| |
350 | 350 |
| |
351 | 351 |
| |
352 |
| - | |
353 |
| - | |
354 |
| - | |
355 | 352 |
| |
356 | 353 |
| |
357 | 354 |
| |
|
Lines changed: 0 additions & 26 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
227 | 227 |
| |
228 | 228 |
| |
229 | 229 |
| |
230 |
| - | |
231 |
| - | |
232 |
| - | |
233 |
| - | |
234 |
| - | |
235 |
| - | |
236 |
| - | |
237 |
| - | |
238 |
| - | |
239 |
| - | |
240 |
| - | |
241 |
| - | |
242 |
| - | |
243 |
| - | |
244 |
| - | |
245 |
| - | |
246 |
| - | |
247 |
| - | |
248 |
| - | |
249 |
| - | |
250 |
| - | |
251 |
| - | |
252 |
| - | |
253 |
| - | |
254 |
| - | |
255 |
| - | |
256 | 230 |
| |
257 | 231 |
| |
258 | 232 |
| |
|
Lines changed: 20 additions & 20 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
90 | 90 |
| |
91 | 91 |
| |
92 | 92 |
| |
93 |
| - | |
| 93 | + | |
94 | 94 |
| |
95 |
| - | |
| 95 | + | |
96 | 96 |
| |
97 | 97 |
| |
98 |
| - | |
| 98 | + | |
99 | 99 |
| |
100 | 100 |
| |
101 | 101 |
| |
| |||
104 | 104 |
| |
105 | 105 |
| |
106 | 106 |
| |
107 |
| - | |
| 107 | + | |
108 | 108 |
| |
109 |
| - | |
| 109 | + | |
110 | 110 |
| |
111 | 111 |
| |
112 |
| - | |
| 112 | + | |
113 | 113 |
| |
114 | 114 |
| |
115 | 115 |
| |
| |||
138 | 138 |
| |
139 | 139 |
| |
140 | 140 |
| |
141 |
| - | |
| 141 | + | |
142 | 142 |
| |
143 | 143 |
| |
144 | 144 |
| |
145 |
| - | |
| 145 | + | |
146 | 146 |
| |
147 | 147 |
| |
148 | 148 |
| |
149 | 149 |
| |
150 | 150 |
| |
151 | 151 |
| |
152 | 152 |
| |
153 |
| - | |
| 153 | + | |
154 | 154 |
| |
155 | 155 |
| |
156 | 156 |
| |
157 |
| - | |
| 157 | + | |
158 | 158 |
| |
159 | 159 |
| |
160 | 160 |
| |
| |||
180 | 180 |
| |
181 | 181 |
| |
182 | 182 |
| |
183 |
| - | |
| 183 | + | |
184 | 184 |
| |
185 |
| - | |
| 185 | + | |
186 | 186 |
| |
187 | 187 |
| |
188 |
| - | |
| 188 | + | |
189 | 189 |
| |
190 | 190 |
| |
191 | 191 |
| |
| |||
194 | 194 |
| |
195 | 195 |
| |
196 | 196 |
| |
197 |
| - | |
| 197 | + | |
198 | 198 |
| |
199 |
| - | |
| 199 | + | |
200 | 200 |
| |
201 | 201 |
| |
202 |
| - | |
| 202 | + | |
203 | 203 |
| |
204 | 204 |
| |
205 | 205 |
| |
| |||
224 | 224 |
| |
225 | 225 |
| |
226 | 226 |
| |
227 |
| - | |
| 227 | + | |
228 | 228 |
| |
229 | 229 |
| |
230 | 230 |
| |
231 |
| - | |
| 231 | + | |
232 | 232 |
| |
233 | 233 |
| |
234 | 234 |
| |
235 | 235 |
| |
236 | 236 |
| |
237 | 237 |
| |
238 | 238 |
| |
239 |
| - | |
| 239 | + | |
240 | 240 |
| |
241 | 241 |
| |
242 | 242 |
| |
243 |
| - | |
| 243 | + | |
244 | 244 |
| |
245 | 245 |
| |
246 | 246 |
| |
|
Lines changed: 4 additions & 20 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
435 | 435 |
| |
436 | 436 |
| |
437 | 437 |
| |
438 |
| - | |
| 438 | + | |
| 439 | + | |
439 | 440 |
| |
440 | 441 |
| |
441 | 442 |
| |
| |||
450 | 451 |
| |
451 | 452 |
| |
452 | 453 |
| |
453 |
| - | |
454 | 454 |
| |
455 |
| - | |
456 |
| - | |
457 |
| - | |
458 | 455 |
| |
459 | 456 |
| |
460 | 457 |
| |
461 | 458 |
| |
462 |
| - | |
| 459 | + | |
463 | 460 |
| |
464 | 461 |
| |
465 |
| - | |
466 | 462 |
| |
467 |
| - | |
468 |
| - | |
469 |
| - | |
470 | 463 |
| |
471 | 464 |
| |
472 | 465 |
| |
| |||
477 | 470 |
| |
478 | 471 |
| |
479 | 472 |
| |
480 |
| - | |
| 473 | + | |
481 | 474 |
| |
482 |
| - | |
483 | 475 |
| |
484 | 476 |
| |
485 | 477 |
| |
486 | 478 |
| |
487 | 479 |
| |
488 | 480 |
| |
489 |
| - | |
490 |
| - | |
491 |
| - | |
492 |
| - | |
493 |
| - | |
494 |
| - | |
495 |
| - | |
496 |
| - | |
497 | 481 |
| |
498 | 482 |
| |
499 | 483 |
| |
|
Lines changed: 0 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
313 | 313 |
| |
314 | 314 |
| |
315 | 315 |
| |
316 |
| - | |
317 | 316 |
| |
318 | 317 |
| |
319 | 318 |
| |
|
0 commit comments
Comments
(0)