Bug 737365 - stop using the cx during finalization, part 1.
This part changes the signatures for various finalization API to take not JSContext* but rather either JSFreeOp structure or its library-private counterpart FreeOp. These structures wrap parameters that are passed to the finalizers removing most of explicit dependencies on JSContext in the finalization code.
This commit is contained in:
@@ -218,8 +218,9 @@ js_FinishAtomState(JSRuntime *rt)
|
||||
return;
|
||||
}
|
||||
|
||||
FreeOp fop(rt, false, false, NULL);
|
||||
for (AtomSet::Range r = state->atoms.all(); !r.empty(); r.popFront())
|
||||
r.front().asPtr()->finalize(rt);
|
||||
r.front().asPtr()->finalize(&fop);
|
||||
}
|
||||
|
||||
bool
|
||||
|
||||
Reference in New Issue
Block a user