mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-04 14:58:37 +09:00
56 GC.
Trying narrow when atom crash started between 55 and 60 and if its easy to revert.
This commit is contained in:
parent
a166624927
commit
17e93e902c
51 changed files with 3856 additions and 660 deletions
|
|
@ -329,8 +329,16 @@ Wrapper::wrappedObject(JSObject* wrapper)
|
|||
{
|
||||
MOZ_ASSERT(wrapper->is<WrapperObject>());
|
||||
JSObject* target = wrapper->as<ProxyObject>().target();
|
||||
if (target)
|
||||
JS::ExposeObjectToActiveJS(target);
|
||||
// Eagerly unmark gray wrapper targets so we can assert that we don't create
|
||||
// black to gray edges. An incremental GC will eventually mark the targets
|
||||
// of black wrappers black but while it is in progress we can observe gray
|
||||
// targets. Expose rather than returning a gray object in this case.
|
||||
if (target) {
|
||||
if (wrapper->isMarkedAny() && !wrapper->isMarkedGray())
|
||||
MOZ_ASSERT(JS::ObjectIsNotGray(target));
|
||||
if (!wrapper->isMarkedGray())
|
||||
JS::ExposeObjectToActiveJS(target);
|
||||
}
|
||||
return target;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue