Commit d783f332 authored by Brian Hackett's avatar Brian Hackett
Browse files

Bug 1504830 - Don't collect snow white objects when recording/replaying, r=mccr8.

--HG--
extra : rebase_source : 7bd6ab505cf3537aa254d69ada09eebad97b1834
parent 645f80c0
Loading
Loading
Loading
Loading
+6 −3
Original line number Diff line number Diff line
@@ -2758,9 +2758,12 @@ public:
  bool
  Visit(nsPurpleBuffer& aBuffer, nsPurpleBufferEntry* aEntry)
  {
    // Ignore any slice budget we have when recording/replaying, as it behaves
    // non-deterministically.
    if (mBudget && !recordreplay::IsRecordingOrReplaying()) {
    // The cycle collector does not collect anything when recording/replaying.
    if (recordreplay::IsRecordingOrReplaying()) {
      return true;
    }

    if (mBudget) {
      if (mBudget->isOverBudget()) {
        return false;
      }