зеркало из https://github.com/mozilla/gecko-dev.git
Backed out changeset 24fb27182a1d (bug 1341096)
This commit is contained in:
Родитель
4ae6659c88
Коммит
0c9adfde90
|
@ -7546,11 +7546,7 @@ JS::IsIncrementalGCInProgress(JSContext* cx)
|
|||
JS_PUBLIC_API(bool)
|
||||
JS::IsIncrementalBarrierNeeded(JSContext* cx)
|
||||
{
|
||||
if (JS::CurrentThreadIsHeapBusy())
|
||||
return false;
|
||||
|
||||
auto state = cx->runtime()->gc.state();
|
||||
return state != gc::State::NotActive || state <= gc::State::Sweep;
|
||||
return cx->runtime()->gc.state() == gc::State::Mark && !JS::CurrentThreadIsHeapBusy();
|
||||
}
|
||||
|
||||
JS_PUBLIC_API(void)
|
||||
|
|
Загрузка…
Ссылка в новой задаче