mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-27 20:25:44 +00:00
6e6e460616
Classic deadlock situation possible because getDatabaseHelperForProfile(..) would lock on [PerProfileDatabase] and then try to on [GeckoProfile] while at the same time it would be possible for another thread which already had the [GeckoProfile] lock to call this method and so try to acquire the [PerProfileDatabase] lock. The simplest solution to resolve this and the one I went with is to ensure that one of those threads will not need both locks and it turns out that the getDatabaseHelperForProfile method can easily be refactored to use only the GeckoProfile lock, change which would not significantly increase the block of code synchronized with the same key. Differential Revision: https://phabricator.services.mozilla.com/D35646 --HG-- extra : moz-landing-system : lando |
||
---|---|---|
.. | ||
android | ||
locales |