Require to always drop directory locks explicitly
Categories
(Core :: Storage: Quota Manager, task, P2)
Tracking
()
Tracking | Status | |
---|---|---|
firefox129 | --- | fixed |
People
(Reporter: janv, Assigned: janv)
References
(Blocks 1 open bug)
Details
Attachments
(3 files, 1 obsolete file)
This is needed for bug 1903186.
Assignee | ||
Updated•4 months ago
|
Assignee | ||
Comment 1•4 months ago
|
||
Until now, directory locks were dropped when the last strong reference was
removed or after calling Drop explicitly. The dependency on ref-counting makes
it less obvious when directory locks are dropped for real and it's also
difficult to release them asynchronously eventually. This patch removes the
directory lock unregistration from the destructor, so from now on, directory
locks must be always dropped explicitly.
Assignee | ||
Updated•22 days ago
|
Pushed by jvarga@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/dca9f407ea90 Require to always drop directory locks explicitly; r=dom-storage-reviewers,jari
Assignee | ||
Comment 3•22 days ago
|
||
Pushed by jvarga@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/a98a57009510 Add testing for DirectoryLock::Drop; r=dom-storage-reviewers,jari
Assignee | ||
Comment 5•21 days ago
|
||
For now, asynchronous Drop is only needed for replacing counting of pending
clear/shutdown storage operations with evaluation of existing directory locks.
In future, asynchronous Drop will also allow to do IO, for example if we decide
to wait for saving of origin access time to be finished.
Comment 6•21 days ago
|
||
bugherder |
Comment 7•21 days ago
|
||
bugherder |
Assignee | ||
Comment 8•19 days ago
|
||
Pushed by jvarga@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/3c8afb03c48d Convert a debug only assertion in DirectoryLockImpl dtor to a diagnostic assertion; r=dom-storage-reviewers,jstutte
Comment 10•18 days ago
|
||
bugherder |
Comment 11•18 days ago
|
||
Comment on attachment 9407629 [details]
Bug 1883353 - Change DirectoryLock::Drop to be asynchronous; r=#dom-storage
Revision D197298 was moved to bug 1903186. Setting attachment 9407629 [details] to obsolete.
Assignee | ||
Updated•18 days ago
|
Assignee | ||
Updated•18 days ago
|
Assignee | ||
Updated•18 days ago
|
Assignee | ||
Comment 12•18 days ago
•
|
||
Fixed.
Description
•