Title: [257554] trunk/Source/bmalloc
Revision
257554
Author
[email protected]
Date
2020-02-26 20:56:58 -0800 (Wed, 26 Feb 2020)

Log Message

[bmalloc][PlayStation] Set Scavenger's thread name.
https://bugs.webkit.org/show_bug.cgi?id=208268

Reviewed by Alex Christensen.

We also need to have our thread with proper name.

* bmalloc/Scavenger.cpp:
(bmalloc::Scavenger::setThreadName):

Modified Paths

Diff

Modified: trunk/Source/bmalloc/ChangeLog (257553 => 257554)


--- trunk/Source/bmalloc/ChangeLog	2020-02-27 04:43:32 UTC (rev 257553)
+++ trunk/Source/bmalloc/ChangeLog	2020-02-27 04:56:58 UTC (rev 257554)
@@ -1,3 +1,15 @@
+2020-02-26  Basuke Suzuki  <[email protected]>
+
+        [bmalloc][PlayStation] Set Scavenger's thread name.
+        https://bugs.webkit.org/show_bug.cgi?id=208268
+
+        Reviewed by Alex Christensen.
+
+        We also need to have our thread with proper name.
+
+        * bmalloc/Scavenger.cpp:
+        (bmalloc::Scavenger::setThreadName):
+
 2020-02-25  Saam Barati  <[email protected]>
 
         Update stale comment about PackedAlignedPtr

Modified: trunk/Source/bmalloc/bmalloc/Scavenger.cpp (257553 => 257554)


--- trunk/Source/bmalloc/bmalloc/Scavenger.cpp	2020-02-27 04:43:32 UTC (rev 257553)
+++ trunk/Source/bmalloc/bmalloc/Scavenger.cpp	2020-02-27 04:56:58 UTC (rev 257554)
@@ -40,6 +40,10 @@
 #include <stdio.h>
 #include <thread>
 
+#if BPLATFORM(PLAYSTATION)
+#include <pthread_np.h>
+#endif
+
 namespace bmalloc {
 
 static constexpr bool verbose = false;
@@ -513,7 +517,7 @@
 void Scavenger::setThreadName(const char* name)
 {
     BUNUSED(name);
-#if BOS(DARWIN)
+#if BOS(DARWIN) || BPLATFORM(PLAYSTATION)
     pthread_setname_np(name);
 #elif BOS(LINUX)
     // Truncate the given name since Linux limits the size of the thread name 16 including null terminator.
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to