From: takashikkbn@... Date: 2018-10-23T00:10:27+00:00 Subject: [ruby-core:89517] [Ruby trunk Bug#14867] Process.wait can wait for MJIT compiler process Issue #14867 has been updated by k0kubun (Takashi Kokubun). Ah, one thing I forgot to note which was found on watching CI is that looping in `stop_worker()` (calling `rb_postponed_job_flush`) may not flush mjit_copy_job_handler when EC_EXEC_TAG() is not TAG_NONE. That's why I think `stop_worker_p` should be checked inside `copy_cache_from_main_thread()`. My current attempt to fix this issue is r65312. I'll watch CI results. ---------------------------------------- Bug #14867: Process.wait can wait for MJIT compiler process https://bugs.ruby-lang.org/issues/14867#change-74570 * Author: k0kubun (Takashi Kokubun) * Status: Closed * Priority: Normal * Assignee: normalperson (Eric Wong) * Target version: * ruby -v: * Backport: 2.3: UNKNOWN, 2.4: UNKNOWN, 2.5: UNKNOWN ---------------------------------------- If Ruby tries to wait for any child process, MJIT's gcc/clang process could be caught by the method call. It's not convenient for both Ruby's user and MJIT worker thread, so Process.wait and its families should somehow avoid waiting for it. ---Files-------------------------------- 0001-hijack-SIGCHLD-handler-for-internal-use.patch (13.8 KB) JIT-test-all.log (39.9 KB) mjit_test-all_63796.log (40.4 KB) config_ruby-loco_mingw.log (27 KB) test_jit_results.txt (41.2 KB) -- https://bugs.ruby-lang.org/ Unsubscribe: