Title: [208562] trunk/Source/bmalloc
- Revision
- 208562
- Author
- gga...@apple.com
- Date
- 2016-11-10 13:40:56 -0800 (Thu, 10 Nov 2016)
Log Message
bmalloc threads should have a non-default QoS
https://bugs.webkit.org/show_bug.cgi?id=164612
Reviewed by Filip Pizlo.
* bmalloc/AsyncTask.h:
(bmalloc::Function>::threadEntryPoint): Request user-interactive quality
of service because user-interactive tasks use malloc.
Modified Paths
Diff
Modified: trunk/Source/bmalloc/ChangeLog (208561 => 208562)
--- trunk/Source/bmalloc/ChangeLog 2016-11-10 21:31:01 UTC (rev 208561)
+++ trunk/Source/bmalloc/ChangeLog 2016-11-10 21:40:56 UTC (rev 208562)
@@ -1,3 +1,14 @@
+2016-11-10 Geoffrey Garen <gga...@apple.com>
+
+ bmalloc threads should have a non-default QoS
+ https://bugs.webkit.org/show_bug.cgi?id=164612
+
+ Reviewed by Filip Pizlo.
+
+ * bmalloc/AsyncTask.h:
+ (bmalloc::Function>::threadEntryPoint): Request user-interactive quality
+ of service because user-interactive tasks use malloc.
+
2016-10-20 Mark Lam <mark....@apple.com>
bmalloc api should crash on failure to allocate when !isBmallocEnabled.
Modified: trunk/Source/bmalloc/bmalloc/AsyncTask.h (208561 => 208562)
--- trunk/Source/bmalloc/bmalloc/AsyncTask.h 2016-11-10 21:31:01 UTC (rev 208561)
+++ trunk/Source/bmalloc/bmalloc/AsyncTask.h 2016-11-10 21:40:56 UTC (rev 208562)
@@ -103,6 +103,10 @@
template<typename Object, typename Function>
void AsyncTask<Object, Function>::threadEntryPoint(AsyncTask* asyncTask)
{
+#if BOS(DARWIN)
+ pthread_set_qos_class_self_np(QOS_CLASS_USER_INTERACTIVE, 0);
+#endif
+
asyncTask->threadRunLoop();
}
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes