Title: [205740] trunk/Source/WTF
Revision
205740
Author
[email protected]
Date
2016-09-09 05:54:12 -0700 (Fri, 09 Sep 2016)

Log Message

Gardening: fixing a few JSC test failures.
https://bugs.webkit.org/show_bug.cgi?id=161760

Not reviewed.

Without this fix, the following tests will crash on a null dereference of isGCThread.
    stress/slow-path-generator-updating-current-node-dfg.js.misc-ftl-no-cjit
    stress/unshift-array-storage.js.misc-ftl-no-cjit

* wtf/MainThread.cpp:
(WTF::mayBeGCThread):

Modified Paths

Diff

Modified: trunk/Source/WTF/ChangeLog (205739 => 205740)


--- trunk/Source/WTF/ChangeLog	2016-09-09 12:06:03 UTC (rev 205739)
+++ trunk/Source/WTF/ChangeLog	2016-09-09 12:54:12 UTC (rev 205740)
@@ -1,3 +1,17 @@
+2016-09-09  Mark Lam  <[email protected]>
+
+        Gardening: fixing a few JSC test failures.
+        https://bugs.webkit.org/show_bug.cgi?id=161760
+
+        Not reviewed.
+
+        Without this fix, the following tests will crash on a null dereference of isGCThread.
+            stress/slow-path-generator-updating-current-node-dfg.js.misc-ftl-no-cjit
+            stress/unshift-array-storage.js.misc-ftl-no-cjit
+
+        * wtf/MainThread.cpp:
+        (WTF::mayBeGCThread):
+
 2016-09-08  Yusuke Suzuki  <[email protected]>
 
         [WTF] HashTable's rehash is not compatible to Ref<T> and ASan

Modified: trunk/Source/WTF/wtf/MainThread.cpp (205739 => 205740)


--- trunk/Source/WTF/wtf/MainThread.cpp	2016-09-09 12:06:03 UTC (rev 205739)
+++ trunk/Source/WTF/wtf/MainThread.cpp	2016-09-09 12:54:12 UTC (rev 205740)
@@ -218,7 +218,7 @@
 
 bool mayBeGCThread()
 {
-    return isGCThread->isSet() && **isGCThread;
+    return isGCThread && isGCThread->isSet() && **isGCThread;
 }
 
 } // namespace WTF
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to