Loading
Bug 1728849 - Protect l10nregistry sources with mutex; r=platform-i18n-reviewers,gregtatum
This changes from using RefCell to Mutex. RefCell is suitable for single-threaded applications, but we are seeing concurrent access here leading to crashes when the sources are mutated at the same time that bundles are being generated. This appears to have a minimal effect on the criterion benchmarks. Most of the results are within +/- 2.0% of the baseline, with a few slower (worst is 9% slower) and a few faster (best is 7% faster). Differential Revision: https://phabricator.services.mozilla.com/D140053