forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit631beea
committed
Use LWSYNC in place of SYNC/ISYNC in PPC spinlocks, where possible.
This is allegedly a win, at least on some PPC implementations, accordingto the PPC ISA documents. However, as with LWARX hints, some PPCplatforms give an illegal-instruction failure. Use the same trick asbefore of assuming that PPC64 platforms will accept it; we might need torefine that based on experience, but there are other projects doinglikewise according to google.I did not add an assembler compatibility test because LWSYNC has beenaround much longer than hint bits, and it seems unlikely that anytoolchains currently in use don't recognize it.1 parent8496c6c commit631beea
2 files changed
+29
-1
lines changedLines changed: 11 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
188 | 188 |
| |
189 | 189 |
| |
190 | 190 |
| |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
191 | 202 |
| |
192 | 203 |
| |
193 | 204 |
| |
|
Lines changed: 18 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
361 | 361 |
| |
362 | 362 |
| |
363 | 363 |
| |
| 364 | + | |
364 | 365 |
| |
365 | 366 |
| |
366 | 367 |
| |
| |||
382 | 383 |
| |
383 | 384 |
| |
384 | 385 |
| |
| 386 | + | |
| 387 | + | |
| 388 | + | |
385 | 389 |
| |
| 390 | + | |
386 | 391 |
| |
387 | 392 |
| |
388 | 393 |
| |
| |||
392 | 397 |
| |
393 | 398 |
| |
394 | 399 |
| |
395 |
| - | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
396 | 412 |
| |
397 | 413 |
| |
398 | 414 |
| |
399 | 415 |
| |
400 | 416 |
| |
401 | 417 |
| |
| 418 | + | |
402 | 419 |
| |
403 | 420 |
| |
404 | 421 |
| |
|
0 commit comments
Comments
(0)