diff options
author | Takashi Kokubun <[email protected]> | 2020-12-07 15:33:29 -0800 |
---|---|---|
committer | Takashi Kokubun <[email protected]> | 2020-12-07 15:34:02 -0800 |
commit | 5c2ff88be2e515613dfe54823e8429656f688e9f (patch) | |
tree | 60c47cf33246f5e50bd899ea62c3812defeb648b | |
parent | 41fafd9dd29717cfa9fcf6331d9da88f49da4916 (diff) |
Lock the entire active_units loop
The previous fix seems not working. Let me test if this works.
-rw-r--r-- | mjit_worker.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/mjit_worker.c b/mjit_worker.c index f97bf6518f..586ac13613 100644 --- a/mjit_worker.c +++ b/mjit_worker.c @@ -938,7 +938,6 @@ compile_compact_jit_code(char* c_file) bool success = true; CRITICAL_SECTION_START(3, "before active_units list_for_each"); list_for_each(&active_units.head, child_unit, unode) { - CRITICAL_SECTION_FINISH(3, "after active_units list_for_each"); char funcname[MAXPATHLEN]; sprint_funcname(funcname, child_unit); @@ -952,8 +951,6 @@ compile_compact_jit_code(char* c_file) if (!iseq_label) iseq_label = sep = ""; fprintf(f, "\n/* %s%s%s:%ld */\n", iseq_label, sep, iseq_path, iseq_lineno); success &= mjit_compile(f, child_unit->iseq, funcname, child_unit->id); - - CRITICAL_SECTION_START(3, "before active_units list_for_each"); } CRITICAL_SECTION_FINISH(3, "after active_units list_for_each"); |