Summary: | [V8] Out-of-memory crash in isolated worlds | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Adam Barth <abarth> | ||||||
Component: | WebCore JavaScript | Assignee: | Nobody <webkit-unassigned> | ||||||
Status: | RESOLVED FIXED | ||||||||
Severity: | Normal | CC: | commit-queue | ||||||
Priority: | P2 | ||||||||
Version: | 528+ (Nightly build) | ||||||||
Hardware: | All | ||||||||
OS: | All | ||||||||
Attachments: |
|
Description
Adam Barth
2009-10-29 07:58:21 PDT
Created attachment 42099 [details]
Patch v1
Comment on attachment 42099 [details]
Patch v1
This patch leaks the isolated world object.
Created attachment 42103 [details]
Patch v1
Comment on attachment 42103 [details]
Patch v1
r=me.
Comment on attachment 42103 [details]
Patch v1
Time to break the build!
Comment on attachment 42103 [details]
Patch v1
Can we make world a smart pointer (like OwnPtr) instead of using manual delete?
(In reply to comment #6) > (From update of attachment 42103 [details]) > Can we make world a smart pointer (like OwnPtr) instead of using manual delete? The problem is that it's lifetime is managed by the V8 GC. We manually delete it here because if we never create the context, we can't transfer ownership to V8. Comment on attachment 42103 [details] Patch v1 Clearing flags on attachment: 42103 Committed r50296: <http://trac.webkit.org/changeset/50296> All reviewed patches have been landed. Closing bug. Committed r50299: <http://trac.webkit.org/changeset/50299> |