WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED WONTFIX
73260
IndexedDB: make IDBBackingStore ThreadSafeRefCounted instead of RefCounted
https://bugs.webkit.org/show_bug.cgi?id=73260
Summary
IndexedDB: make IDBBackingStore ThreadSafeRefCounted instead of RefCounted
David Grogan
Reported
2011-11-28 15:29:25 PST
make IDBBackingStore ThreadSafeRefCounted instead of RefCounted
Attachments
Patch
(1.45 KB, patch)
2011-11-28 15:39 PST
,
David Grogan
levin
: review-
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
David Grogan
Comment 1
2011-11-28 15:39:07 PST
Created
attachment 116840
[details]
Patch
David Grogan
Comment 2
2011-11-28 15:42:15 PST
Tony, could you review this?
David Levin
Comment 3
2011-11-28 15:53:40 PST
Comment on
attachment 116840
[details]
Patch This isn't safe to do based on my cursory search of what derives from this. (Note if something is ThreadSafeRefCounted then all container objection should like be ThreadSafeRefCounted.)
David Grogan
Comment 4
2011-11-28 16:12:52 PST
(In reply to
comment #3
)
> (From update of
attachment 116840
[details]
) > This isn't safe to do based on my cursory search of what derives from this.
IDBLevelDBBackingStore is the only thing that derives from this. Could you tell me what in IDBLevelDBBackingStore makes this unsafe?
> (Note if something is ThreadSafeRefCounted then all container objection should like be ThreadSafeRefCounted.)
I'm parsing this as "container objects should likely be." I think you mean that the member variables of IDBLevelDBBackingStore should also be ThreadSafeRefCounted. Is that right?
David Levin
Comment 5
2011-11-28 16:30:55 PST
(In reply to
comment #4
)
> (In reply to
comment #3
) > > (From update of
attachment 116840
[details]
[details]) > > This isn't safe to do based on my cursory search of what derives from this. > > IDBLevelDBBackingStore is the only thing that derives from this. Could you tell me what in IDBLevelDBBackingStore makes this unsafe?
I didn't know there was only one. I only found one quick though.
> > > (Note if something is ThreadSafeRefCounted then all container objection should like be ThreadSafeRefCounted.) > > I'm parsing this as "contained objects should likely be."
:Nice autocorrection! I was multitasking a real time im conversation with this and not doing a great job :(.
> I think you mean that the member variables of IDBLevelDBBackingStore should also be ThreadSafeRefCounted. Is that right?
Yep. For example, IDBLevelDBBackingStore contains "String m_identifier;" Now if that string has been shared with any other data structure on any other thread, then it isn't safe to destruct this class on any thread (which is a really hard condition to check the first time much less maintain) -- this is why I said the contained objects shouldn't be RefCounted. Rather than just point at String, I left it more general because I didn't have time to check the rest. I hope that helps. Let me know if you need more. I can be more verbose now as you've noticed :).
David Grogan
Comment 6
2011-11-28 18:28:33 PST
Thanks for the explanation. Turns out this is more than I want to bite off right now, so I'll punt on it. Filed crbug.com/105672.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug