зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1504830 - Don't collect snow white objects when recording/replaying, r=mccr8.
--HG-- extra : rebase_source : 7bd6ab505cf3537aa254d69ada09eebad97b1834
This commit is contained in:
Родитель
645f80c048
Коммит
d783f332ba
|
@ -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;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче