mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-27 04:38:02 +00:00

Bug 1417234 replaced all uses of CRITICAL_SECTION with SRWLocks in the allocator on Windows, and this seems to have incurred performance regressions on speedometer. OTOH, there is a real benefit from not having to manually initialize the allocator. So we restore the use of CRITICAL_SECTIONs for Mutexes in the allocator, except for the initialization lock, which is remaining as a SRWLock. Talos indicates this solves the regression in large part, but is not definitive as whether it has the same effect as a pure backout of bug 1417234. We'll see how things go over time. --HG-- extra : rebase_source : a52b8d08159f6fce8286578114af84e55851a86b