mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-03 02:25:34 +00:00
Bug 1057219 - Add write barrier for the owner of COW elements, r=billm.
This commit is contained in:
parent
8ee4903e6b
commit
b477b631eb
@ -3519,6 +3519,8 @@ JSObject::CopyElementsForWrite(ThreadSafeContext *cx, JSObject *obj)
|
||||
if (newCapacity >= NELEMENTS_LIMIT)
|
||||
return false;
|
||||
|
||||
JSObject::writeBarrierPre(obj->getElementsHeader()->ownerObject());
|
||||
|
||||
ObjectElements *newheader = AllocateElements(cx, obj, newAllocated);
|
||||
if (!newheader)
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user