mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 03:15:11 +00:00
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:
parent
0845b85075
commit
819be4899a
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user