Bug 226228 - Introduce a shared IDB serialization thread
Summary: Introduce a shared IDB serialization thread
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebCore Misc. (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Sihui Liu
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2021-05-25 11:56 PDT by Sihui Liu
Modified: 2021-06-02 21:57 PDT (History)
9 users (show)

See Also:


Attachments
Patch (29.92 KB, patch)
2021-05-25 12:34 PDT, Sihui Liu
no flags Details | Formatted Diff | Diff
Patch (29.88 KB, patch)
2021-05-25 15:01 PDT, Sihui Liu
no flags Details | Formatted Diff | Diff
Patch (30.05 KB, patch)
2021-05-25 15:37 PDT, Sihui Liu
ews-feeder: commit-queue-
Details | Formatted Diff | Diff
Patch (30.03 KB, patch)
2021-05-25 16:10 PDT, Sihui Liu
no flags Details | Formatted Diff | Diff
Patch for landing (30.33 KB, patch)
2021-06-02 20:44 PDT, Sihui Liu
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Sihui Liu 2021-05-25 11:56:18 PDT
...
Comment 1 Sihui Liu 2021-05-25 12:34:25 PDT
Created attachment 429677 [details]
Patch
Comment 2 Sihui Liu 2021-05-25 15:01:08 PDT
Created attachment 429697 [details]
Patch
Comment 3 Sihui Liu 2021-05-25 15:37:07 PDT
Created attachment 429701 [details]
Patch
Comment 4 Sihui Liu 2021-05-25 16:10:02 PDT
Created attachment 429705 [details]
Patch
Comment 5 Chris Dumez 2021-05-26 07:52:33 PDT
Comment on attachment 429705 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=429705&action=review

We may want to add threading assertions to the serialization / deserialization functions to make sure they are called on the expected thread?

> Source/WebCore/Modules/indexeddb/server/IDBSerialization.cpp:428
> +    IDBSerializationContext()

Please make constructor private and add a create() factory function, like we do for all RefCounted classes.

Or maybe even better, don't subclass RefCounted and use a stack object? It is unclear why this is RefCounted based on how it is used currently.
Comment 6 Radar WebKit Bug Importer 2021-06-01 11:57:19 PDT
<rdar://problem/78725516>
Comment 7 Sihui Liu 2021-06-02 20:44:16 PDT
Created attachment 430442 [details]
Patch for landing
Comment 8 EWS 2021-06-02 21:57:52 PDT
Committed r278393 (238418@main): <https://commits.webkit.org/238418@main>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 430442 [details].