зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1314565 - Fix PerfSpewer following mutex ordering changes r=nbp
This commit is contained in:
Родитель
8ed8f8e276
Коммит
dc9af2000e
|
@ -9,7 +9,7 @@
|
|||
#include "mozilla/IntegerPrintfMacros.h"
|
||||
#include "mozilla/SizePrintfMacros.h"
|
||||
|
||||
#if defined(__linux__)
|
||||
#ifdef XP_UNIX
|
||||
# include <unistd.h>
|
||||
#endif
|
||||
|
||||
|
@ -20,6 +20,8 @@
|
|||
# include "jit/MIRGraph.h"
|
||||
#endif
|
||||
|
||||
#include "vm/MutexIDs.h"
|
||||
|
||||
// perf expects its data to be in a file /tmp/perf-PID.map, but for Android
|
||||
// and B2G the map files are written to /data/local/tmp/perf-PID.map
|
||||
//
|
||||
|
@ -94,7 +96,7 @@ js::jit::CheckPerf() {
|
|||
}
|
||||
|
||||
if (PerfMode != PERF_MODE_NONE) {
|
||||
PerfMutex = js_new<js::Mutex>();
|
||||
PerfMutex = js_new<js::Mutex>(mutexid::PerfSpewer);
|
||||
if (!PerfMutex)
|
||||
MOZ_CRASH("failed to allocate PerfMutex");
|
||||
|
||||
|
|
|
@ -34,6 +34,7 @@
|
|||
_(SimulatorCacheLock, 500) \
|
||||
_(Arm64SimulatorLock, 500) \
|
||||
_(IonSpewer, 500) \
|
||||
_(PerfSpewer, 500) \
|
||||
_(TraceLoggerThreadState, 500) \
|
||||
\
|
||||
_(TraceLoggerGraphState, 600)
|
||||
|
|
Загрузка…
Ссылка в новой задаче