Files
bind9/lib/isc
Tony Finch 436b76bb17 Improve the spinloop pause / yield hint
Unfortunately, C still lacks a standard function for pause (x86,
sparc) or yeild (arm) instructions, for use in spin lock or CAS loops.
BIND has its own based on vendor intrinsics or inline asm.

Previously, it was buried in the `isc_rwlock` implementation. This
commit renames `isc_rwlock_pause()` to `isc_pause()` and moves
it into <isc/pause.h>.

This commit also fixes the configure script so that it detects ARM
yield support on systems that identify as `aarch*` instead of `arm*`.

On 64-bit ARM systems we now use the ISB (instruction synchronization
barrier) instruction in preference to yield. The ISB instruction
pauses the CPU for longer, several nanoseconds, which is more like the
x86 pause instruction. There are more details in a Rust pull request,
which also refers to MySQL making the same change:
https://github.com/rust-lang/rust/pull/84725
2023-02-14 17:13:24 +00:00
..
2023-02-13 11:50:59 -08:00
2022-08-25 12:24:25 +02:00
2023-02-13 11:50:59 -08:00
2022-11-29 08:54:34 +01:00
2022-11-29 08:54:34 +01:00
2022-08-25 12:24:29 +02:00
2022-08-25 12:24:29 +02:00
2022-11-29 08:54:34 +01:00
2023-02-09 18:00:13 +00:00
2022-11-29 08:54:34 +01:00
2023-02-09 18:00:13 +00:00
2023-01-09 12:15:21 -08:00
2022-11-29 08:54:34 +01:00
2023-01-19 10:24:08 +00:00
2022-08-25 12:24:29 +02:00
2022-10-17 11:58:26 +01:00
2023-02-06 12:14:51 +00:00
2022-11-29 08:54:34 +01:00
2022-11-29 08:54:34 +01:00
2022-08-25 12:24:29 +02:00