Bug 1465294 Part 14 - Use a single thread in stylo when recording/replaying, r=xidorn.
authorBrian Hackett <bhackett1024@gmail.com>
Sun, 22 Jul 2018 12:01:34 +0000
changeset 469501 a0ee9e803ff24c59245322da5c2f692d803300e1
parent 469500 22d28e5778fd7b1c0e7aaf1752fc773111ab39aa
child 469502 7e4f6f3985d0caf63dd852f26dec16156782caa2
push idunknown
push userunknown
push dateunknown
reviewersxidorn
bugs1465294
milestone63.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 1465294 Part 14 - Use a single thread in stylo when recording/replaying, r=xidorn.
toolkit/recordreplay/ProcessRecordReplay.cpp
--- a/toolkit/recordreplay/ProcessRecordReplay.cpp
+++ b/toolkit/recordreplay/ProcessRecordReplay.cpp
@@ -147,16 +147,19 @@ RecordReplayInterface_Initialize(int aAr
 
   InitializeTriggers();
   InitializeWeakPointers();
   InitializeMemorySnapshots();
   Thread::SpawnAllThreads();
   InitializeCountdownThread();
   SetupDirtyMemoryHandler();
 
+  // Don't create a stylo thread pool when recording or replaying.
+  putenv((char*) "STYLO_THREADS=1");
+
   thread->SetPassThrough(false);
 
   Lock::InitializeLocks();
   InitializeRewindState();
 
   gInitialized = true;
 }