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

--HG--
extra : rebase_source : 7bd6ab505cf3537aa254d69ada09eebad97b1834
This commit is contained in:
Brian Hackett 2018-11-05 10:54:38 -10:00
Родитель 645f80c048
Коммит d783f332ba
1 изменённых файлов: 6 добавлений и 3 удалений

Просмотреть файл

@ -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;
}