From 332985c1788ea438ae87830386fde49677cc6e14 Mon Sep 17 00:00:00 2001 From: Takashi Kokubun Date: Wed, 15 Jun 2022 17:18:19 -0700 Subject: [PATCH] MJIT: Fix test_jit_failure for mswin --- mjit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mjit.c b/mjit.c index d66bde15bd..45b2d13674 100644 --- a/mjit.c +++ b/mjit.c @@ -236,9 +236,9 @@ check_unit_queue(void) // Synchronously compile methods on Windows. // mswin: No SIGCHLD, MinGW: directly compiling .c to .so doesn't work mjit_func_t func = convert_unit_to_func(unit); + MJIT_ATOMIC_SET(ISEQ_BODY(unit->iseq)->jit_func, func); if ((uintptr_t)func > (uintptr_t)LAST_JIT_ISEQ_FUNC) { add_to_list(unit, &active_units); - MJIT_ATOMIC_SET(ISEQ_BODY(unit->iseq)->jit_func, func); } #else current_cc_ms = real_ms_time();