1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

MJIT: Fix test_jit_failure for mswin

This commit is contained in:
Takashi Kokubun 2022-06-15 17:18:19 -07:00
parent 15a6dd56e0
commit 332985c178
No known key found for this signature in database
GPG key ID: 6FFC433B12EE23DD

2
mjit.c
View file

@ -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();