Skip to content
This repository was archived by the owner on Jul 9, 2025. It is now read-only.

Commit a72c16f

Browse files
committed
Bug 1944959: Free BaselineCompileTask even if compilation failed r=nbp
Differential Revision: https://phabricator.services.mozilla.com/D236440
1 parent c11ca4a commit a72c16f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

js/src/jit/BaselineCompileTask.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,8 @@ void js::AttachFinishedBaselineCompilations(JSContext* cx,
111111
AutoUnlockHelperThreadState unlock(lock);
112112
AutoRealm ar(cx, task->script());
113113
task->finishOnMainThread(cx);
114-
BaselineCompileTask::FinishOffThreadTask(task);
115114
}
115+
BaselineCompileTask::FinishOffThreadTask(task);
116116
}
117117
}
118118
if (!found) {

0 commit comments

Comments
 (0)