mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 889986 - Assert nursery allocations are large enough to be replaced with a RelocationOverlay r=terrence
This commit is contained in:
parent
4668939844
commit
0e7e8813a4
@ -97,6 +97,9 @@ js::Nursery::allocate(size_t size)
|
||||
{
|
||||
JS_ASSERT(!runtime()->isHeapBusy());
|
||||
|
||||
/* Ensure there's enough space to replace the contents with a RelocationOverlay. */
|
||||
JS_ASSERT(size >= sizeof(RelocationOverlay));
|
||||
|
||||
if (position() + size > currentEnd()) {
|
||||
if (currentChunk_ + 1 == numActiveChunks_)
|
||||
return nullptr;
|
||||
|
Loading…
Reference in New Issue
Block a user