RESOLVED FIXED 196341
[JSC] Drop VM and Context cache map in JavaScriptCore.framework
https://bugs.webkit.org/show_bug.cgi?id=196341
Summary [JSC] Drop VM and Context cache map in JavaScriptCore.framework
Yusuke Suzuki
Reported 2019-03-27 23:38:54 PDT
[JSC] Drop VM and Context cache map in JavaScriptCore.framework
Attachments
Patch (11.90 KB, patch)
2019-03-27 23:43 PDT, Yusuke Suzuki
saam: review+
Yusuke Suzuki
Comment 1 2019-03-27 23:43:21 PDT
Saam Barati
Comment 2 2019-03-28 08:54:41 PDT
Comment on attachment 366155 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=366155&action=review > Source/JavaScriptCore/API/JSContext.mm:89 > + toJSGlobalObject(m_context)->setAPIWrapper((__bridge void*)self); Why are these bridge casts?
Yusuke Suzuki
Comment 3 2019-03-28 12:27:56 PDT
Comment on attachment 366155 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=366155&action=review Thanks! >> Source/JavaScriptCore/API/JSContext.mm:89 >> + toJSGlobalObject(m_context)->setAPIWrapper((__bridge void*)self); > > Why are these bridge casts? This makes the code OK even if ARC is enabled, ensuring we do not insert any ARC retaining operations. http://clang.llvm.org/docs/AutomaticReferenceCounting.html#bridged-casts Like this change. https://trac.webkit.org/changeset/233409/webkit
Yusuke Suzuki
Comment 4 2019-03-28 12:38:38 PDT
Radar WebKit Bug Importer
Comment 5 2019-03-28 12:39:16 PDT
Yusuke Suzuki
Comment 6 2019-07-11 02:42:28 PDT
Mark Lam
Comment 7 2019-07-11 09:36:54 PDT
(In reply to Yusuke Suzuki from comment #6) > Committed r247346: <https://trac.webkit.org/changeset/247346> To clarify, r247346 rolls out r243617. r243617 is invalid.
David Kilzer (:ddkilzer)
Comment 8 2019-07-11 10:58:39 PDT
Radar tracking this rollout fix: <rdar://problem/50484118>
David Kilzer (:ddkilzer)
Comment 9 2019-07-11 10:59:24 PDT
Oops, I was confused. Back to: <rdar://problem/49390987>
Note You need to log in before you can comment on or make changes to this bug.