зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1270056
- skip the GC in nsGlobalWindow::SetNewDocument() r=smaug
This commit is contained in:
Родитель
2c456d0807
Коммит
93438255d9
|
@ -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);
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче