Bug 869733 - Assert we don't try to nursery allocate inside GC code; r=billm

--HG--
extra : rebase_source : 5cd269e8b904fba8cf80cd99c2ce9bea158e09b2
This commit is contained in:
Terrence Cole 2013-05-10 15:57:11 -07:00
parent 85749efb32
commit 81dec328b4

View File

@ -68,6 +68,7 @@ js::Nursery::allocate(size_t size)
{
JS_ASSERT(size % ThingAlignment == 0);
JS_ASSERT(position() % ThingAlignment == 0);
JS_ASSERT(!runtime()->isHeapBusy());
if (position() + size > end())
return NULL;