Asynchronous storage shutdown
Categories
(Core :: Storage: Quota Manager, task, P2)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox105 | --- | fixed |
People
(Reporter: janv, Assigned: janv)
References
(Blocks 1 open bug)
Details
Attachments
(3 external files)
The existing ShutdownStorage method is currently run on the IO thread only. The new asynchronous InitializeStorage method which is being added in bug 1749504 adds some members which can be accessed on the PBackground thread only. We need to reset them during shutdown, so ShutdownStorage needs to properly create an operation which runs on both threads.
| Assignee | ||
Comment 1•4 years ago
|
||
| Assignee | ||
Comment 2•4 years ago
|
||
Depends on D152724
Comment 3•4 years ago
|
||
(In reply to Jan Varga [:janv] from comment #0)
The existing
ShutdownStoragemethod is currently run on the IO thread only. The new asynchronousInitializeStoragemethod which is being added in bug 1749504 adds some members which can be accessed on the PBackground thread only. We need to reset them during shutdown, soShutdownStorageneeds to properly create an operation which runs on both threads.
There is (yet) no patch on bug 1749504 that would help to understand the context better? Did you invert the order of patches, adding those members here? Can you please add some more (updated) context on the patches here? Thanks
| Assignee | ||
Comment 4•4 years ago
|
||
A patch for bug 1749504 is coming soon, but I guess the comment in the second patch for this bug should be enough already. Asynchronous storage shutdown makes quota manager shutdown cleaner and it paves a way for future cleanup/improvements besides supporting bug 1749504.
| Assignee | ||
Comment 5•4 years ago
|
||
Depends on D152725
Updated•4 years ago
|
Comment 7•4 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/c310be196adb
https://hg.mozilla.org/mozilla-central/rev/3aadb63489df
https://hg.mozilla.org/mozilla-central/rev/f433ccad5905
Description
•