Bug 1291064 - Make js::HelperThread use js::ThisThread::SetName instead of PR_SetCurrentThreadName; r=terrence
authorNick Fitzgerald <fitzgen@gmail.com>
Fri, 05 Aug 2016 09:25:18 -0700
changeset 397513 c73ec3922c88e6cbdc9444594f5744837973b981
parent 397512 ae2af50de1a2f85392fbdd86ad6d699c1990a015
child 397514 5ea439b8ccb891d50723cc91bf329c1bf9e38217
push id25332
push usermaglione.k@gmail.com
push dateSat, 06 Aug 2016 21:21:51 +0000
reviewersterrence
bugs1291064
milestone51.0a1
Bug 1291064 - Make js::HelperThread use js::ThisThread::SetName instead of PR_SetCurrentThreadName; r=terrence
js/src/vm/HelperThreads.cpp
--- a/js/src/vm/HelperThreads.cpp
+++ b/js/src/vm/HelperThreads.cpp
@@ -1295,17 +1295,17 @@ HelperThread::destroy()
 
     threadData.reset();
 }
 
 /* static */
 void
 HelperThread::ThreadMain(void* arg)
 {
-    PR_SetCurrentThreadName("JS Helper");
+    ThisThread::SetName("JS Helper");
 
     //See bug 1104658.
     //Set the FPU control word to be the same as the main thread's, or math
     //computations on this thread may use incorrect precision rules during
     //Ion compilation.
     FIX_FPU();
 
     static_cast<HelperThread*>(arg)->threadLoop();