WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
42634
[v8] Allow handles to be disposed and WebKit objects to be dereferenced even if their map is already destroyed.
https://bugs.webkit.org/show_bug.cgi?id=42634
Summary
[v8] Allow handles to be disposed and WebKit objects to be dereferenced even ...
anton muhin
Reported
2010-07-20 06:20:59 PDT
[v8] Allow handles to be disposed and WebKit objects to be dereferenced even if their map is already destroyed.
Attachments
Shorter
(5.19 KB, patch)
2010-07-20 07:53 PDT
,
anton muhin
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
anton muhin
Comment 1
2010-07-20 07:53:23 PDT
Created
attachment 62075
[details]
Shorter
anton muhin
Comment 2
2010-07-20 08:01:23 PDT
I've got longer patch which attacks the problem differently: it introduces additional weak reference callbacks to be used for all mapping in the map being destroyed. However, I think this simpler approach is better. One of possible drawbacks: it could mask some other problems as we unconditionally release objects.
Adam Barth
Comment 3
2010-07-20 08:54:51 PDT
Comment on
attachment 62075
[details]
Shorter Yeah, I like this approach better than introducing additional weak callbacks. This code is really complicated. I wish there was an easier (i.e., more automatic) way of handling this stuff. All this manually ref()/deref()/Dispose() business is bad news bears. Keeps the weak relationships in sync is really tricky. I think this patch is correct. Thanks for working in this area.
anton muhin
Comment 4
2010-07-20 09:09:50 PDT
Comment on
attachment 62075
[details]
Shorter Thanks a lot, Adam.
WebKit Commit Bot
Comment 5
2010-07-20 10:21:02 PDT
Comment on
attachment 62075
[details]
Shorter Clearing flags on attachment: 62075 Committed
r63751
: <
http://trac.webkit.org/changeset/63751
>
WebKit Commit Bot
Comment 6
2010-07-20 10:21:06 PDT
All reviewed patches have been landed. Closing bug.
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