diff options
author | Takashi Kokubun <takashikkbn@gmail.com> | 2022-06-13 09:28:28 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-13 09:28:28 -0700 |
commit | f8502a26990c652a2c3c1131614230fec446ab25 (patch) | |
tree | 618347f1c9db919ee680374ae3dc55aa6c25e8d2 /mjit.c | |
parent | c3ee80ff468bc9461a8acf74a89339da53fee93b (diff) |
Drop MinGW support of MJIT (#6012)
[Feature #18824]
Notes
Notes:
Merged-By: k0kubun <takashikkbn@gmail.com>
Diffstat (limited to 'mjit.c')
-rw-r--r-- | mjit.c | 18 |
1 files changed, 0 insertions, 18 deletions
@@ -879,20 +879,6 @@ mjit_resume(void) return Qtrue; } -// Skip calling `clean_temp_files` for units which currently exist in the list. -static void -skip_cleaning_object_files(struct rb_mjit_unit_list *list) -{ - struct rb_mjit_unit *unit = NULL, *next; - - // No mutex for list, assuming MJIT worker does not exist yet since it's immediately after fork. - ccan_list_for_each_safe(&list->head, unit, next, unode) { -#if defined(_WIN32) // mswin doesn't reach here either. This is for MinGW. - if (unit->so_file) unit->so_file = NULL; -#endif - } -} - // This is called after fork initiated by Ruby's method to launch MJIT worker thread // for child Ruby process. // @@ -914,10 +900,6 @@ mjit_child_after_fork(void) if (!mjit_enabled) return; - /* Let parent process delete the already-compiled object files. - This must be done before starting MJIT worker on child process. */ - skip_cleaning_object_files(&active_units); - /* MJIT worker thread is not inherited on fork. Start it for this child process. */ start_worker(); } |