Bug 1511525 - Consider RunToPoint messages when determining where a child process is, r=mccr8.
authorBrian Hackett <bhackett1024@gmail.com>
Fri, 30 Nov 2018 14:19:55 -1000
changeset 509560 7206ae930051fd16d6a38ca9f202f7085080355d
parent 509559 835a30210291a037d03088b6d17f88d0419865cf
child 509561 4794752b935829110debe5afcf021862d79cc32d
push id10547
push userffxbld-merge
push dateMon, 21 Jan 2019 13:03:58 +0000
treeherdermozilla-beta@24ec1916bffe [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmccr8
bugs1511525
milestone66.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 1511525 - Consider RunToPoint messages when determining where a child process is, r=mccr8.
toolkit/recordreplay/ipc/ChildProcess.cpp
--- a/toolkit/recordreplay/ipc/ChildProcess.cpp
+++ b/toolkit/recordreplay/ipc/ChildProcess.cpp
@@ -75,16 +75,19 @@ ChildProcessInfo::~ChildProcessInfo() {
 ChildProcessInfo::Disposition ChildProcessInfo::GetDisposition() {
   // We can determine the disposition of the child by looking at the first
   // resume message sent since the last time it reached a checkpoint.
   for (Message* msg : mMessages) {
     if (msg->mType == MessageType::Resume) {
       const ResumeMessage& nmsg = static_cast<const ResumeMessage&>(*msg);
       return nmsg.mForward ? AfterLastCheckpoint : BeforeLastCheckpoint;
     }
+    if (msg->mType == MessageType::RunToPoint) {
+      return AfterLastCheckpoint;
+    }
   }
   return AtLastCheckpoint;
 }
 
 bool ChildProcessInfo::IsPausedAtCheckpoint() {
   return IsPaused() && mPausedMessage->mType == MessageType::HitCheckpoint;
 }