mirror of
https://github.com/rdmsr/zag.git
synced 2026-10-27 13:58:20 +00:00
b9261c84dee0fb8d3cca3f28ceb983465dd28c82
Optimize the mutex code in a few ways: - Split the fast and slow paths into their own functions, inline the fast path. - Raise IPL only when acquiring a turnstile lock. - Avoid taking the turnstile lock if the "waiters" bit is not set. - Do adaptive spinning only when the lock owner is running.
Description
Languages
Zig
97.8%
Assembly
1.5%
Linker Script
0.7%