Title: [250070] tags/Safari-609.1.4.2/Source/_javascript_Core
Revision
250070
Author
[email protected]
Date
2019-09-18 17:07:48 -0700 (Wed, 18 Sep 2019)

Log Message

Cherry-pick r250062. rdar://problem/55484663

    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):

    git-svn-id: https://svn.webkit.org/repository/webkit/trunk@250062 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Modified Paths

Diff

Modified: tags/Safari-609.1.4.2/Source/_javascript_Core/API/JSContextRef.cpp (250069 => 250070)


--- tags/Safari-609.1.4.2/Source/_javascript_Core/API/JSContextRef.cpp	2019-09-19 00:07:32 UTC (rev 250069)
+++ tags/Safari-609.1.4.2/Source/_javascript_Core/API/JSContextRef.cpp	2019-09-19 00:07:48 UTC (rev 250070)
@@ -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: tags/Safari-609.1.4.2/Source/_javascript_Core/ChangeLog (250069 => 250070)


--- tags/Safari-609.1.4.2/Source/_javascript_Core/ChangeLog	2019-09-19 00:07:32 UTC (rev 250069)
+++ tags/Safari-609.1.4.2/Source/_javascript_Core/ChangeLog	2019-09-19 00:07:48 UTC (rev 250070)
@@ -1,3 +1,41 @@
+2019-09-18  Alan Coon  <[email protected]>
+
+        Cherry-pick r250062. rdar://problem/55484663
+
+    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):
+    
+    git-svn-id: https://svn.webkit.org/repository/webkit/trunk@250062 268f45cc-cd09-0410-ab3c-d52691b4dbfc
+
+    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-10  Yusuke Suzuki  <[email protected]>
 
         [JSC] 32bit bitwide operation with all-one (-1) is wrong in B3
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to