We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 673f384 commit 183b421Copy full SHA for 183b421
mjit_worker.c
@@ -1038,7 +1038,6 @@ convert_unit_to_func(struct rb_mjit_unit *unit)
1038
fclose(f);
1039
if (!mjit_opts.save_temps)
1040
remove_file(c_file);
1041
- free_unit(unit);
1042
in_jit = false; // just being explicit for return
1043
}
1044
else {
@@ -1237,6 +1236,9 @@ mjit_worker(void)
1237
1236
// Usage of jit_code might be not in a critical section.
1238
MJIT_ATOMIC_SET(unit->iseq->body->jit_func, func);
1239
+ else {
1240
+ free_unit(unit);
1241
+ }
1242
CRITICAL_SECTION_FINISH(3, "in jit func replace");
1243
1244
#ifndef _MSC_VER
0 commit comments