Diff
Modified: trunk/Source/_javascript_Core/ChangeLog (169150 => 169151)
--- trunk/Source/_javascript_Core/ChangeLog 2014-05-21 06:01:19 UTC (rev 169150)
+++ trunk/Source/_javascript_Core/ChangeLog 2014-05-21 06:55:02 UTC (rev 169151)
@@ -1,3 +1,15 @@
+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 Filip Pizlo <[email protected]>
DFG prediction propagation should agree with fixup phase over the return type of GetByVal
Modified: trunk/Source/_javascript_Core/heap/BlockAllocator.cpp (169150 => 169151)
--- trunk/Source/_javascript_Core/heap/BlockAllocator.cpp 2014-05-21 06:01:19 UTC (rev 169150)
+++ trunk/Source/_javascript_Core/heap/BlockAllocator.cpp 2014-05-21 06:55:02 UTC (rev 169151)
@@ -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: trunk/Source/WTF/ChangeLog (169150 => 169151)
--- trunk/Source/WTF/ChangeLog 2014-05-21 06:01:19 UTC (rev 169150)
+++ trunk/Source/WTF/ChangeLog 2014-05-21 06:55:02 UTC (rev 169151)
@@ -1,3 +1,21 @@
+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: trunk/Source/WTF/wtf/FastMalloc.cpp (169150 => 169151)
--- trunk/Source/WTF/wtf/FastMalloc.cpp 2014-05-21 06:01:19 UTC (rev 169150)
+++ trunk/Source/WTF/wtf/FastMalloc.cpp 2014-05-21 06:55:02 UTC (rev 169151)
@@ -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: trunk/Source/WTF/wtf/Threading.h (169150 => 169151)
--- trunk/Source/WTF/wtf/Threading.h 2014-05-21 06:01:19 UTC (rev 169150)
+++ trunk/Source/WTF/wtf/Threading.h 2014-05-21 06:55:02 UTC (rev 169151)
@@ -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: trunk/Source/WTF/wtf/ThreadingPthreads.cpp (169150 => 169151)
--- trunk/Source/WTF/wtf/ThreadingPthreads.cpp 2014-05-21 06:01:19 UTC (rev 169150)
+++ trunk/Source/WTF/wtf/ThreadingPthreads.cpp 2014-05-21 06:55:02 UTC (rev 169151)
@@ -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, ¶m);
}
-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: trunk/Source/WTF/wtf/ThreadingWin.cpp (169150 => 169151)
--- trunk/Source/WTF/wtf/ThreadingWin.cpp 2014-05-21 06:01:19 UTC (rev 169150)
+++ trunk/Source/WTF/wtf/ThreadingWin.cpp 2014-05-21 06:55:02 UTC (rev 169151)
@@ -257,10 +257,6 @@
SetThreadPriority(threadHandle, THREAD_PRIORITY_NORMAL + delta);
}
-void setCurrentThreadQOSUtility()
-{
-}
-
int waitForThreadCompletion(ThreadIdentifier threadID)
{
ASSERT(threadID);