Avoid some useless ForgetSkippable handling while we're already dealing with snow-white objects.
This commit is contained in:
parent
1da6381a9f
commit
6cd5a2225e
|
@ -2832,6 +2832,11 @@ nsCycleCollector::ForgetSkippable(bool aRemoveChildlessNodes,
|
|||
{
|
||||
CheckThreadSafety();
|
||||
|
||||
// Avoid this when we're aleady dealing with snow-white objects.
|
||||
if (mFreeingSnowWhite) {
|
||||
return;
|
||||
}
|
||||
|
||||
mozilla::Maybe<mozilla::AutoGlobalTimelineMarker> marker;
|
||||
if (NS_IsMainThread()) {
|
||||
marker.emplace("nsCycleCollector::ForgetSkippable", MarkerStackRequest::NO_STACK);
|
||||
|
|
Loading…
Reference in New Issue