2008-07-30 Ariya Hidayat <ariya.hidayat@trolltech.com>
authorap@webkit.org <ap@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 30 Jul 2008 16:58:21 +0000 (16:58 +0000)
committerap@webkit.org <ap@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 30 Jul 2008 16:58:21 +0000 (16:58 +0000)
        Reviewed by Alexey Proskuryakov.

        Fix compilation without multi-threading support.

        * kjs/collector.cpp:
        (KJS::Heap::Heap):

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

JavaScriptCore/ChangeLog
JavaScriptCore/kjs/collector.cpp

index 12e7681..1543548 100644 (file)
@@ -1,3 +1,12 @@
+2008-07-30  Ariya Hidayat  <ariya.hidayat@trolltech.com>
+
+        Reviewed by Alexey Proskuryakov.
+
+        Fix compilation without multi-threading support.
+
+        * kjs/collector.cpp:
+        (KJS::Heap::Heap):
+
 2008-07-30  Anders Carlsson  <andersca@apple.com>
         
         Add WebKitAvailability.h forwarding header.
index 3b4c178..8aff10e 100644 (file)
@@ -123,9 +123,11 @@ Heap::Heap(JSGlobalData* globalData)
 #endif
     , m_globalData(globalData)
 {
+#if USE(MULTIPLE_THREADS)
     int error = pthread_key_create(&m_currentThreadRegistrar, unregisterThread);
     if (error)
         CRASH();
+#endif
 
     memset(&primaryHeap, 0, sizeof(CollectorHeap));
     memset(&numberHeap, 0, sizeof(CollectorHeap));