зеркало из https://github.com/mozilla/gecko-dev.git
Bug 957110 - Don't assert nursery start address when then nursery is disabled r=terrence
This commit is contained in:
Родитель
eb55035528
Коммит
184ae42773
|
@ -103,8 +103,10 @@ bool
|
|||
js::Nursery::isEmpty() const
|
||||
{
|
||||
JS_ASSERT(runtime_);
|
||||
if (!isEnabled())
|
||||
return true;
|
||||
JS_ASSERT_IF(runtime_->gcZeal_ != ZealGenerationalGCValue, currentStart_ == start());
|
||||
return !isEnabled() || position() == currentStart_;
|
||||
return position() == currentStart_;
|
||||
}
|
||||
|
||||
void *
|
||||
|
|
|
@ -0,0 +1,6 @@
|
|||
gczeal(7,1);
|
||||
try {
|
||||
gcparam("maxBytes", gcparam("gcBytes") + 4*1024);
|
||||
newGlobal("same-compartment");
|
||||
} catch(exc1) {}
|
||||
gczeal(1);
|
Загрузка…
Ссылка в новой задаче