Bug 1502355 - Allocate |PipeToState| as tenured, for perhaps marginally greater efficiency. r=arai

Differential Revision: https://phabricator.services.mozilla.com/D92350
This commit is contained in:
Jeff Walden 2020-10-18 05:12:44 +00:00
parent 0845b85075
commit 819be4899a

View File

@ -1151,7 +1151,8 @@ static MOZ_MUST_USE bool PerformAbortAlgorithm(JSContext* cx,
cx->check(promise);
cx->check(signal);
Rooted<PipeToState*> state(cx, NewBuiltinClassInstance<PipeToState>(cx));
Rooted<PipeToState*> state(cx,
NewTenuredBuiltinClassInstance<PipeToState>(cx));
if (!state) {
return nullptr;
}