Bug 1937018 - Use AutoTArray for CacheIOThread's event queues. r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D232037
This commit is contained in:
@@ -36,7 +36,8 @@ class CacheIOThread final : public nsIThreadObserver {
|
|||||||
|
|
||||||
CacheIOThread();
|
CacheIOThread();
|
||||||
|
|
||||||
using EventQueue = nsTArray<nsCOMPtr<nsIRunnable>>;
|
// We have LAST_LEVEL times queues, so keep the inline storage reasonable.
|
||||||
|
using EventQueue = AutoTArray<nsCOMPtr<nsIRunnable>, 32>;
|
||||||
|
|
||||||
enum ELevel : uint32_t {
|
enum ELevel : uint32_t {
|
||||||
OPEN_PRIORITY,
|
OPEN_PRIORITY,
|
||||||
|
|||||||
Reference in New Issue
Block a user