mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-29 15:52:07 +00:00
74481e8af4
Most of the times when we automatically create nsThread wrappers for threads that don't already have them, we don't actually need the event targets, since those threads don't run XPCOM event loops. Aside from wasting memory, actually creating these event loops can lead to leaks if a thread tries to dispatch a runnable to the queue which creates a reference cycle with the thread. Not creating the event queues for threads that don't actually need them helps avoid those foot guns, and also makes it easier to figure out which treads actually run XPCOM event loops. MozReview-Commit-ID: Arck4VQqdne --HG-- extra : source : a03a61d6d724503c3b7c5e31fe32ced1f5d1c219 extra : intermediate-source : 5152af6ab3e399216ef6db8f060c257b2ffbd330 extra : histedit_source : ef06000344416e0919f536d5720fa979d2d29c66%2C4671676b613dc3e3ec762edf5d72a2ffbe6fca3f |
||
---|---|---|
.. | ||
LocalStorage.cpp | ||
LocalStorage.h | ||
LocalStorageCache.cpp | ||
LocalStorageCache.h | ||
LocalStorageManager.cpp | ||
LocalStorageManager.h | ||
moz.build | ||
PBackgroundLocalStorageCache.ipdl | ||
PBackgroundStorage.ipdl | ||
SessionStorage.cpp | ||
SessionStorage.h | ||
SessionStorageCache.cpp | ||
SessionStorageCache.h | ||
SessionStorageManager.cpp | ||
SessionStorageManager.h | ||
Storage.cpp | ||
Storage.h | ||
StorageActivityService.cpp | ||
StorageActivityService.h | ||
StorageDBThread.cpp | ||
StorageDBThread.h | ||
StorageDBUpdater.cpp | ||
StorageDBUpdater.h | ||
StorageIPC.cpp | ||
StorageIPC.h | ||
StorageNotifierService.cpp | ||
StorageNotifierService.h | ||
StorageObserver.cpp | ||
StorageObserver.h | ||
StorageUtils.cpp | ||
StorageUtils.h |