3 ms·
It's designed to avoid contention. The allocator mutex is tuned for fastest uncontended acquire and release.
by jeffbee 4y ago
It's designed to avoid contention. The allocator mutex is tuned for fastest uncontended acquire and release.
- rockdoe 4y agoSeems like it actually works similarly to the "old compatible path" described in the article: https://news.ycombinator.com/item?id=33153080 https://news.ycombinator.com/item?id=33153080
- cbsmith 4y agoI think, without exception, thread safe allocators all try to avoid contention. Under the covers Chrome uses futex on Linux, SRWlock on Windows and os_unfair_lock (not _with_options) on MacOS.