mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1105232 - Fix race condition updating copy-on-write array owner pointer in compacting GC r=terrence
This commit is contained in:
parent
3665e05348
commit
a32fe4c0ad
@ -2769,8 +2769,7 @@ JSObject::fixupAfterMovingGC()
|
||||
ObjectElements *header = as<NativeObject>().getElementsHeader();
|
||||
if (header->isCopyOnWrite()) {
|
||||
HeapPtrNativeObject &owner = header->ownerObject();
|
||||
if (IsForwarded(owner.get()))
|
||||
owner = Forwarded(owner.get());
|
||||
owner = MaybeForwarded(owner.get());
|
||||
as<NativeObject>().elements_ = owner->getElementsHeader()->elements();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user