Title: [169174] tags/Safari-538.36/Source

Diff

Modified: tags/Safari-538.36/Source/_javascript_Core/ChangeLog (169173 => 169174)


--- tags/Safari-538.36/Source/_javascript_Core/ChangeLog	2014-05-21 19:45:30 UTC (rev 169173)
+++ tags/Safari-538.36/Source/_javascript_Core/ChangeLog	2014-05-21 19:48:16 UTC (rev 169174)
@@ -1,3 +1,19 @@
+2014-05-21  Lucas Forschler  <[email protected]>
+
+        Merge r169151
+
+    2014-05-20  Geoffrey Garen  <[email protected]>
+
+            Rolled out <http://trac.webkit.org/changeset/166184>
+            https://bugs.webkit.org/show_bug.cgi?id=133144
+
+            Reviewed by Gavin Barraclough.
+
+            It caused a performance regression.
+
+            * heap/BlockAllocator.cpp:
+            (JSC::BlockAllocator::blockFreeingThreadStartFunc):
+
 2014-05-20  Mark Hahnenberg  <[email protected]>
 
         Watchdog timer should be lazily allocated

Modified: tags/Safari-538.36/Source/_javascript_Core/heap/BlockAllocator.cpp (169173 => 169174)


--- tags/Safari-538.36/Source/_javascript_Core/heap/BlockAllocator.cpp	2014-05-21 19:45:30 UTC (rev 169173)
+++ tags/Safari-538.36/Source/_javascript_Core/heap/BlockAllocator.cpp	2014-05-21 19:48:16 UTC (rev 169174)
@@ -32,7 +32,6 @@
 #include "JSCInlines.h"
 #include "WeakBlock.h"
 #include <wtf/CurrentTime.h>
-#include <wtf/Threading.h>
 
 namespace JSC {
 
@@ -118,7 +117,6 @@
 
 void BlockAllocator::blockFreeingThreadStartFunc(void* blockAllocator)
 {
-    setCurrentThreadQOSUtility();
     static_cast<BlockAllocator*>(blockAllocator)->blockFreeingThreadMain();
 }
 

Modified: tags/Safari-538.36/Source/WTF/ChangeLog (169173 => 169174)


--- tags/Safari-538.36/Source/WTF/ChangeLog	2014-05-21 19:45:30 UTC (rev 169173)
+++ tags/Safari-538.36/Source/WTF/ChangeLog	2014-05-21 19:48:16 UTC (rev 169174)
@@ -1,3 +1,25 @@
+2014-05-21  Lucas Forschler  <[email protected]>
+
+        Merge r169151
+
+    2014-05-20  Geoffrey Garen  <[email protected]>
+
+            Rolled out <http://trac.webkit.org/changeset/166184>
+            https://bugs.webkit.org/show_bug.cgi?id=133144
+
+            Reviewed by Gavin Barraclough.
+
+            It caused a performance regression.
+
+            * wtf/FastMalloc.cpp:
+            (WTF::TCMalloc_PageHeap::runScavengerThread):
+            * wtf/Threading.h:
+            * wtf/ThreadingPthreads.cpp:
+            (WTF::createThreadInternal):
+            (WTF::setCurrentThreadQOSUtility): Deleted.
+            * wtf/ThreadingWin.cpp:
+            (WTF::setCurrentThreadQOSUtility): Deleted.
+
 2014-05-20  Jer Noble  <[email protected]>
 
         [Mac] AVAssets are never destroyed; lack of an autorelease pool when calling callOnMainThread.

Modified: tags/Safari-538.36/Source/WTF/wtf/FastMalloc.cpp (169173 => 169174)


--- tags/Safari-538.36/Source/WTF/wtf/FastMalloc.cpp	2014-05-21 19:45:30 UTC (rev 169173)
+++ tags/Safari-538.36/Source/WTF/wtf/FastMalloc.cpp	2014-05-21 19:48:16 UTC (rev 169174)
@@ -79,7 +79,6 @@
 
 #include "Assertions.h"
 #include "CurrentTime.h"
-#include "Threading.h"
 
 #include <limits>
 #if OS(WINDOWS)
@@ -2121,8 +2120,6 @@
 
 void* TCMalloc_PageHeap::runScavengerThread(void* context)
 {
-    setCurrentThreadQOSUtility();
-
     static_cast<TCMalloc_PageHeap*>(context)->scavengerThread();
 #if (COMPILER(MSVC) || COMPILER(SUNCC))
     // Without this, Visual Studio and Sun Studio will complain that this method does not return a value.

Modified: tags/Safari-538.36/Source/WTF/wtf/Threading.h (169173 => 169174)


--- tags/Safari-538.36/Source/WTF/wtf/Threading.h	2014-05-21 19:45:30 UTC (rev 169173)
+++ tags/Safari-538.36/Source/WTF/wtf/Threading.h	2014-05-21 19:48:16 UTC (rev 169174)
@@ -89,7 +89,6 @@
 void initializeCurrentThreadInternal(const char* threadName);
 
 WTF_EXPORT_PRIVATE ThreadIdentifier currentThread();
-WTF_EXPORT_PRIVATE void setCurrentThreadQOSUtility();
 WTF_EXPORT_PRIVATE void changeThreadPriority(ThreadIdentifier, int);
 WTF_EXPORT_PRIVATE int waitForThreadCompletion(ThreadIdentifier);
 WTF_EXPORT_PRIVATE void detachThread(ThreadIdentifier);
@@ -100,7 +99,6 @@
 using WTF::createThread;
 using WTF::currentThread;
 using WTF::changeThreadPriority;
-using WTF::setCurrentThreadQOSUtility;
 using WTF::detachThread;
 using WTF::waitForThreadCompletion;
 

Modified: tags/Safari-538.36/Source/WTF/wtf/ThreadingPthreads.cpp (169173 => 169174)


--- tags/Safari-538.36/Source/WTF/wtf/ThreadingPthreads.cpp	2014-05-21 19:45:30 UTC (rev 169173)
+++ tags/Safari-538.36/Source/WTF/wtf/ThreadingPthreads.cpp	2014-05-21 19:48:16 UTC (rev 169174)
@@ -175,15 +175,7 @@
 {
     auto invocation = std::make_unique<ThreadFunctionInvocation>(entryPoint, data);
     pthread_t threadHandle;
-    pthread_attr_t attr;
-    pthread_attr_init(&attr);
-#if OS(MAC_OS_X) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 101000
-    pthread_attr_set_qos_class_np(&attr, QOS_CLASS_USER_INTERACTIVE, 0);
-#endif
-    int error = pthread_create(&threadHandle, &attr, wtfThreadEntryPoint, invocation.get());
-    pthread_attr_destroy(&attr);
-
-    if (error) {
+    if (pthread_create(&threadHandle, 0, wtfThreadEntryPoint, invocation.get())) {
         LOG_ERROR("Failed to create pthread at entry point %p with data %p", wtfThreadEntryPoint, invocation.get());
         return 0;
     }
@@ -236,13 +228,6 @@
     pthread_setschedparam(pthreadHandle, policy, &param);
 }
 
-void setCurrentThreadQOSUtility()
-{
-#if OS(MAC_OS_X) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 101000
-    pthread_set_qos_class_self_np(QOS_CLASS_UTILITY, 0);
-#endif
-}
-
 int waitForThreadCompletion(ThreadIdentifier threadID)
 {
     pthread_t pthreadHandle;

Modified: tags/Safari-538.36/Source/WTF/wtf/ThreadingWin.cpp (169173 => 169174)


--- tags/Safari-538.36/Source/WTF/wtf/ThreadingWin.cpp	2014-05-21 19:45:30 UTC (rev 169173)
+++ tags/Safari-538.36/Source/WTF/wtf/ThreadingWin.cpp	2014-05-21 19:48:16 UTC (rev 169174)
@@ -257,10 +257,6 @@
     SetThreadPriority(threadHandle, THREAD_PRIORITY_NORMAL + delta);
 }
 
-void setCurrentThreadQOSUtility()
-{
-}
-
 int waitForThreadCompletion(ThreadIdentifier threadID)
 {
     ASSERT(threadID);
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to