summaryrefslogtreecommitdiff
path: root/mjit.c
diff options
context:
space:
mode:
Diffstat (limited to 'mjit.c')
-rw-r--r--mjit.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/mjit.c b/mjit.c
index a45e155c4f..ef1a364ddd 100644
--- a/mjit.c
+++ b/mjit.c
@@ -1219,7 +1219,8 @@ worker(void)
#ifndef _MSC_VER
/* Combine .o files to one .so and reload all jit_func to improve memory locality */
- if ((unit_queue.length == 0 && active_units.length > 1) || active_units.length == mjit_opts.max_cache_size) {
+ if ((!mjit_opts.wait && unit_queue.length == 0 && active_units.length > 1)
+ || active_units.length == mjit_opts.max_cache_size) {
compact_all_jit_code();
}
#endif