| Summary: | The JSContainerConvertor and ObjcContainerConvertor need to protect JSValueRefs | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Mark Lam <mark.lam> | ||||||||
| Component: | JavaScriptCore | Assignee: | Mark Lam <mark.lam> | ||||||||
| Status: | RESOLVED FIXED | ||||||||||
| Severity: | Normal | CC: | fpizlo, ggaren, mhahnenberg, mmirman, msaboff, oliver | ||||||||
| Priority: | P2 | Keywords: | InRadar | ||||||||
| Version: | 528+ (Nightly build) | ||||||||||
| Hardware: | Unspecified | ||||||||||
| OS: | Unspecified | ||||||||||
| See Also: | https://bugs.webkit.org/show_bug.cgi?id=156966 | ||||||||||
| Attachments: |
|
||||||||||
|
Description
Mark Lam
2014-02-13 14:03:33 PST
Created attachment 224114 [details]
the patch.
Mark H suggested using Strong<Unknown> instead of my ProtectedRef. Will give that a try. Comment on attachment 224114 [details]
the patch.
Let's use Strong or ProtectedPtr instead of introducing a new type here.
Created attachment 224131 [details]
simpler patch.
Comment on attachment 224131 [details]
simpler patch.
Much improved! r=me
Thanks. Landed in r164077: <http://trac.webkit.org/r164077>. Found some bugs. Fix coming. Created attachment 224143 [details]
Part 2 of fix.
Comment on attachment 224143 [details] Part 2 of fix. View in context: https://bugs.webkit.org/attachment.cgi?id=224143&action=review r=me > Source/JavaScriptCore/ChangeLog:8 > + toJS() is the wrong cast function to used. We need to use toJSForGC() instead. to use. > Source/JavaScriptCore/ChangeLog:9 > + Also we need to acquire the JSLock because to protect accessed to the Strong ...JSLock to prevent concurrent accesses to the Strong handle list. Thanks. Part 2 landed in r164089: <http://trac.webkit.org/r164089>. The regression test for this fix is at <https://webkit.org/b/129067>. |