Title: [250062] trunk/Source/_javascript_Core
- Revision
- 250062
- Author
- [email protected]
- Date
- 2019-09-18 15:56:19 -0700 (Wed, 18 Sep 2019)
Log Message
Stop calling WTF::initializeMainThread() in JSGlobalContextCreate*()
https://bugs.webkit.org/show_bug.cgi?id=201947
<rdar://problem/55453612>
Reviewed by Mark Lam.
Stop calling WTF::initializeMainThread() in JSGlobalContextCreate*(). I started doing so in <https://trac.webkit.org/changeset/248533>
but it is causing crashes for apps using this JS API on background threads. It is also no longer necessary as of
<https://trac.webkit.org/changeset/249064>.
* API/JSContextRef.cpp:
(JSContextGroupCreate):
(JSGlobalContextCreate):
(JSGlobalContextCreateInGroup):
Modified Paths
Diff
Modified: trunk/Source/_javascript_Core/API/JSContextRef.cpp (250061 => 250062)
--- trunk/Source/_javascript_Core/API/JSContextRef.cpp 2019-09-18 22:30:39 UTC (rev 250061)
+++ trunk/Source/_javascript_Core/API/JSContextRef.cpp 2019-09-18 22:56:19 UTC (rev 250062)
@@ -68,7 +68,6 @@
JSContextGroupRef JSContextGroupCreate()
{
- WTF::initializeMainThread();
initializeThreading();
return toRef(&VM::createContextGroup().leakRef());
}
@@ -119,7 +118,6 @@
JSGlobalContextRef JSGlobalContextCreate(JSClassRef globalObjectClass)
{
- WTF::initializeMainThread();
initializeThreading();
#if OS(DARWIN)
@@ -135,7 +133,6 @@
JSGlobalContextRef JSGlobalContextCreateInGroup(JSContextGroupRef group, JSClassRef globalObjectClass)
{
- WTF::initializeMainThread();
initializeThreading();
Ref<VM> vm = group ? Ref<VM>(*toJS(group)) : VM::createContextGroup();
Modified: trunk/Source/_javascript_Core/ChangeLog (250061 => 250062)
--- trunk/Source/_javascript_Core/ChangeLog 2019-09-18 22:30:39 UTC (rev 250061)
+++ trunk/Source/_javascript_Core/ChangeLog 2019-09-18 22:56:19 UTC (rev 250062)
@@ -1,3 +1,20 @@
+2019-09-18 Chris Dumez <[email protected]>
+
+ Stop calling WTF::initializeMainThread() in JSGlobalContextCreate*()
+ https://bugs.webkit.org/show_bug.cgi?id=201947
+ <rdar://problem/55453612>
+
+ Reviewed by Mark Lam.
+
+ Stop calling WTF::initializeMainThread() in JSGlobalContextCreate*(). I started doing so in <https://trac.webkit.org/changeset/248533>
+ but it is causing crashes for apps using this JS API on background threads. It is also no longer necessary as of
+ <https://trac.webkit.org/changeset/249064>.
+
+ * API/JSContextRef.cpp:
+ (JSContextGroupCreate):
+ (JSGlobalContextCreate):
+ (JSGlobalContextCreateInGroup):
+
2019-09-18 Saam Barati <[email protected]>
Phantom insertion phase may disagree with arguments forwarding about live ranges
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes