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 308421 c73ec3922c88e6cbdc9444594f5744837973b981
parent 308420 ae2af50de1a2f85392fbdd86ad6d699c1990a015
child 308422 5ea439b8ccb891d50723cc91bf329c1bf9e38217
push id30537
push userphilringnalda@gmail.com
push dateSun, 07 Aug 2016 06:34:58 +0000
treeherdermozilla-central@70948f120f5f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersterrence
bugs1291064
milestone51.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
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();