Re:Improving Firefox Responsiveness on macOS
by gsvelto on Monday October 10, 2022 @03:47PM
(#33155659)
Post author here, `__ulock_wait2` is used under the hood by `os_unfair_lock()`. I considered it but it would have required more scaffolding, especially to support all the versions of macOS we care about. We might use it in the future though.
Re:Improving Firefox Responsiveness on macOS
by cbsmith on Monday October 10, 2022 @03:51PM
(#33155702)
Per the documentation (https://github.com/apple/darwin-xnu/blob/main/bsd/kern/sys_u...), it looks like ulock_wait might be one of the XNU primitives that supports os_unfair_lock.
From some Zig code: