- Notifications
You must be signed in to change notification settings - Fork5
Commit4893ccd
committed
Remove swpb-based spinlock implementation for ARMv5 and earlier.
Per recent analysis by Andres Freund, this implementation is in factunsafe, because ARMv5 has weak memory ordering, which means tha theCPU could move loads or stores across the volatile store performed bythe default S_UNLOCK. We could try to fix this, but have no ARMv5hardware to test on, so removing support seems better. We can stillsupport ARMv5 systems on GCC versions new enough to have built-inatomics support for this platform, and can also re-add support forthe old way if someone has hardware that can be used to test a fix.However, since the requirement to use a relatively-new GCC hasn'tbeen an issue for ARMv6 or ARMv7, which lack the swpb instructionaltogether, perhaps it won't be an issue for ARMv5 either.1 parent1b86c81 commit4893ccd
1 file changed
+6
-48
lines changedLines changed: 6 additions & 48 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
300 | 300 |
| |
301 | 301 |
| |
302 | 302 |
| |
303 |
| - | |
304 | 303 |
| |
305 |
| - | |
306 |
| - | |
307 |
| - | |
308 |
| - | |
309 |
| - | |
310 |
| - | |
311 |
| - | |
312 |
| - | |
313 |
| - | |
314 |
| - | |
315 |
| - | |
316 |
| - | |
317 |
| - | |
318 |
| - | |
319 |
| - | |
320 |
| - | |
321 |
| - | |
322 |
| - | |
323 |
| - | |
324 |
| - | |
325 |
| - | |
326 |
| - | |
327 |
| - | |
328 |
| - | |
329 |
| - | |
330 |
| - | |
331 |
| - | |
332 |
| - | |
333 |
| - | |
334 |
| - | |
335 |
| - | |
336 |
| - | |
337 |
| - | |
338 |
| - | |
339 |
| - | |
340 |
| - | |
341 |
| - | |
342 |
| - | |
343 |
| - | |
344 |
| - | |
345 |
| - | |
346 |
| - | |
347 |
| - | |
348 |
| - | |
349 |
| - | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
350 | 308 |
| |
351 |
| - | |
| 309 | + | |
352 | 310 |
| |
353 | 311 |
| |
354 | 312 |
| |
| |||
365 | 323 |
| |
366 | 324 |
| |
367 | 325 |
| |
368 |
| - | |
| 326 | + | |
369 | 327 |
| |
370 | 328 |
| |
371 | 329 |
| |
|
0 commit comments
Comments
(0)