Fix an assertion failure in initializeDates() when launching Safari, which was introd...
authormitz@apple.com <mitz@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 13 Jan 2014 03:55:32 +0000 (03:55 +0000)
committermitz@apple.com <mitz@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 13 Jan 2014 03:55:32 +0000 (03:55 +0000)
Reviewed by Andy Estes.

* wtf/ThreadingPthreads.cpp:
(WTF::initializeThreading): Set isInitialized to true.

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

Source/WTF/ChangeLog
Source/WTF/wtf/ThreadingPthreads.cpp

index 3bb9845..e438a17 100644 (file)
@@ -1,3 +1,12 @@
+2014-01-12  Dan Bernstein  <mitz@apple.com>
+
+        Fix an assertion failure in initializeDates() when launching Safari, which was introduced in r161852.
+
+        Reviewed by Andy Estes.
+
+        * wtf/ThreadingPthreads.cpp:
+        (WTF::initializeThreading): Set isInitialized to true.
+
 2014-01-12  Darin Adler  <darin@apple.com>
 
         Add PLATFORM(COCOA) and USE(FOUNDATION)
index 550ce02..e774860 100644 (file)
@@ -115,6 +115,8 @@ void initializeThreading()
     if (isInitialized)
         return;
 
+    isInitialized = true;
+
     WTF::double_conversion::initialize();
     // StringImpl::empty() does not construct its static string in a threadsafe fashion,
     // so ensure it has been initialized from here.