mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-01 14:45:29 +00:00
No bug - Fix macro warning in jsgc.cpp (rs=Waldo)
This commit is contained in:
parent
de8060e941
commit
b72ec6d7d5
@ -3889,22 +3889,22 @@ RemoveFromGrayList(RawObject wrapper)
|
||||
wrapper->setReservedSlot(slot, UndefinedValue());
|
||||
|
||||
JSCompartment *c = CrossCompartmentPointerReferent(wrapper)->compartment();
|
||||
RawObject o = c->gcIncomingGrayPointers;
|
||||
if (o == wrapper) {
|
||||
RawObject obj = c->gcIncomingGrayPointers;
|
||||
if (obj == wrapper) {
|
||||
c->gcIncomingGrayPointers = tail;
|
||||
return true;
|
||||
}
|
||||
|
||||
while (o) {
|
||||
while (obj) {
|
||||
unsigned slot = GrayLinkSlot(o);
|
||||
RawObject next = o->getReservedSlot(slot).toObjectOrNull();
|
||||
if (next == wrapper) {
|
||||
o->setCrossCompartmentSlot(slot, ObjectOrNullValue(tail));
|
||||
obj->setCrossCompartmentSlot(slot, ObjectOrNullValue(tail));
|
||||
return true;
|
||||
}
|
||||
o = next;
|
||||
obj = next;
|
||||
}
|
||||
JS_NOT_REACHED();
|
||||
JS_NOT_REACHED("object not found in gray link list");
|
||||
}
|
||||
|
||||
void
|
||||
|
Loading…
Reference in New Issue
Block a user