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:
parent
15a6dd56e0
commit
332985c178
1 changed files with 1 additions and 1 deletions
2
mjit.c
2
mjit.c
|
@ -236,9 +236,9 @@ check_unit_queue(void)
|
||||||
// Synchronously compile methods on Windows.
|
// Synchronously compile methods on Windows.
|
||||||
// mswin: No SIGCHLD, MinGW: directly compiling .c to .so doesn't work
|
// mswin: No SIGCHLD, MinGW: directly compiling .c to .so doesn't work
|
||||||
mjit_func_t func = convert_unit_to_func(unit);
|
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) {
|
if ((uintptr_t)func > (uintptr_t)LAST_JIT_ISEQ_FUNC) {
|
||||||
add_to_list(unit, &active_units);
|
add_to_list(unit, &active_units);
|
||||||
MJIT_ATOMIC_SET(ISEQ_BODY(unit->iseq)->jit_func, func);
|
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
current_cc_ms = real_ms_time();
|
current_cc_ms = real_ms_time();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue