Bug 1406492 - Fix TaskTracer build after bug 1404147. r?njn draft
authorMarkus Stange <mstange@themasta.com>
Wed, 04 Oct 2017 23:30:38 -0400
changeset 676167 32f4be4ee9dc62ca73f7a8bae7ed212c69a0743c
parent 676166 864bbd0d0bcb28a2960c213185ba38dd53d0ef78
child 676168 72124715ddbe25e44f2abb6eceff0dd949c2d2ce
child 676492 6d1ad757ce07da5088081bf82c06c85eaa58edd4
push id83407
push userbmo:mstange@themasta.com
push dateFri, 06 Oct 2017 18:48:31 +0000
reviewersnjn
bugs1406492, 1404147
milestone58.0a1
Bug 1406492 - Fix TaskTracer build after bug 1404147. r?njn MozReview-Commit-ID: CerCYhAmEI8
tools/profiler/tasktracer/GeckoTaskTracer.cpp
--- a/tools/profiler/tasktracer/GeckoTaskTracer.cpp
+++ b/tools/profiler/tasktracer/GeckoTaskTracer.cpp
@@ -256,17 +256,17 @@ GetOrCreateTraceInfo()
 }
 
 uint64_t
 GenNewUniqueTaskId()
 {
   TraceInfoHolder info = GetOrCreateTraceInfo();
   ENSURE_TRUE(info, 0);
 
-  Thread::tid_t tid = Thread::GetCurrentId();
+  int tid = Thread::GetCurrentId();
   uint64_t taskid = ((uint64_t)tid << 32) | ++info->mLastUniqueTaskId;
   return taskid;
 }
 
 AutoSaveCurTraceInfoImpl::AutoSaveCurTraceInfoImpl()
 {
   GetCurTraceInfo(&mSavedSourceEventId, &mSavedTaskId, &mSavedSourceEventType);
 }