Fix 'out of order' malloc failure-handling bug found by cgn1234@yahoo.com (41022, r=cgn1234).
git-svn-id: svn://10.0.0.236/trunk@74069 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
bafb8a90d7
commit
d6a267cf1e
@ -218,7 +218,8 @@ retry:
|
||||
(tried_gc || rt->gcMallocBytes < rt->gcMaxBytes))
|
||||
{
|
||||
JS_ARENA_ALLOCATE(thing, &rt->gcArenaPool, sizeof(JSGCThing));
|
||||
JS_ARENA_ALLOCATE(flagp, &rt->gcFlagsPool, sizeof(uint8));
|
||||
if (thing)
|
||||
JS_ARENA_ALLOCATE(flagp, &rt->gcFlagsPool, sizeof(uint8));
|
||||
}
|
||||
if (!thing || !flagp) {
|
||||
if (thing)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user