Bug 1270056 - skip the GC in nsGlobalWindow::SetNewDocument() r=smaug

This commit is contained in:
JerryShih 2017-03-06 17:47:27 +00:00
Родитель 2c456d0807
Коммит 93438255d9
2 изменённых файлов: 3 добавлений и 3 удалений

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

@ -3175,7 +3175,6 @@ nsGlobalWindow::SetNewDocument(nsIDocument* aDocument,
newInnerWindow->GetDocGroup()->GetValidAccessPtr());
}
nsJSContext::PokeGC(JS::gcreason::SET_NEW_DOCUMENT, GetWrapperPreserveColor());
kungFuDeathGrip->DidInitializeContext();
// We wait to fire the debugger hook until the window is all set up and hooked

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

@ -1183,8 +1183,9 @@ nsJSContext::GarbageCollectNow(JS::gcreason::Reason aReason,
IsShrinking aShrinking,
int64_t aSliceMillis)
{
PROFILER_LABEL("nsJSContext", "GarbageCollectNow",
js::ProfileEntry::Category::GC);
PROFILER_LABEL_PRINTF("nsJSContext", "GarbageCollectNow",
js::ProfileEntry::Category::GC,
"%s", JS::gcreason::ExplainReason(aReason));
MOZ_ASSERT_IF(aSliceMillis, aIncremental == IncrementalGC);