Closed
Bug 1620369
Opened 1 year ago
Closed 9 months ago
Convert the thread 'Cache Deleter' to use the background thread pool
Categories
(Core :: Networking: Cache, task, P3)
Core
Networking: Cache
Tracking
()
RESOLVED
FIXED
mozilla78
Tracking | Status | |
---|---|---|
firefox78 | --- | fixed |
People
(Reporter: KrisWright, Assigned: fronkc1)
References
(Blocks 1 open bug)
Details
(Whiteboard: [necko-triaged])
Attachments
(1 file)
The thread Cache Deleter
[1] uses the NS_NewNamedThread
method, so it might be possible to move it to the background thread pool.
In an effort to reduce the number of ad-hoc threads in the browser, we want to convert instances of NS_NewNamedThread
to use the background thread pool [2] wherever possible. If your thread may block, you can also include the NS_DISPATCH_EVENT_MAY_BLOCK
flag.
[1] https://searchfox.org/mozilla-central/rev/c79c0d65a183d9d38676855f455a5c6a7f7dadd3/netwerk/cache/nsDeleteDir.cpp#110
[2] https://searchfox.org/mozilla-central/rev/91f6c02fcf4c16f78fdc4417f61f192688294066/xpcom/threads/nsThreadUtils.h#1730-1757
Updated•1 year ago
|
Priority: -- → P3
Whiteboard: [necko-triaged]
Assignee | ||
Comment 1•10 months ago
|
||
Depends on D74546
Updated•10 months ago
|
Assignee: nobody → fronkc1
Status: NEW → ASSIGNED
Pushed by btara@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/832533e92a8c Convert Cache Deleter to use background thread pool r=necko-reviewers,michal
Comment 3•9 months ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 9 months ago
status-firefox78:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla78
You need to log in
before you can comment on or make changes to this bug.
Description
•