Closed Bug 1638927 Opened 5 years ago Closed 5 years ago

Replace dedicated `XULStore` thread with background tasks

Categories

(Core :: SQLite and Embedded Database Bindings, task, P3)

task

Tracking

()

RESOLVED FIXED
mozilla78
Tracking Status
firefox78 --- fixed

People

(Reporter: lina, Assigned: lina)

References

(Blocks 1 open bug)

Details

Attachments

(2 files)

XULStore currently spins up its own thread for background persistence. We can replace this with a call to dispatch_background_task in persist—I don't think we even need a queue in this case.

Depends on: 1638929
Assignee: nobody → lina
Status: NEW → ASSIGNED
Pushed by kcambridge@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/48cd04b805d0 Replace dedicated `XULStore` persistence thread with background tasks. r=KrisWright

Hmmm, I wonder if it's the same thing as this GitHub issue. Since we already have once_cell in the tree, and it seems to have a better threading story, let's give it a try.

TSan returns false positives for lazy_static. While we could
blocklist it, once_cell has equivalent functionality, but with a more
modern API, so let's use it instead.

Depends on D75864

Pushed by kcambridge@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/89d99941f3af Replace dedicated `XULStore` persistence thread with background tasks. r=KrisWright https://hg.mozilla.org/integration/autoland/rev/1785974f69f2 Replace `lazy_static` with `once_cell` in XULStore. r=froydnj
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla78
Product: Toolkit → Core
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: