aboutsummaryrefslogtreecommitdiffstats
path: root/mjit.c
diff options
context:
space:
mode:
authorTakashi Kokubun <takashikkbn@gmail.com>2020-11-22 07:10:44 -0800
committerGitHub <noreply@github.com>2020-11-22 07:10:44 -0800
commitfa1250a506e9b6a1bcbf664f6b7b9c06e045d9b9 (patch)
tree794ba06e9a6ddee9d7cf07e2759d189684657c33 /mjit.c
parent175952bf0779f236be643880f8a04b9d46dcd083 (diff)
downloadruby-fa1250a506e9b6a1bcbf664f6b7b9c06e045d9b9.tar.gz
Stop leaving .c files for JIT compaction in /tmp (#3802)
* Re-generate C files for JIT compaction every time * Refactor in_jit return logic * Just write code in a single file * Add a TODO comment [ci skip]
Diffstat (limited to 'mjit.c')
-rw-r--r--mjit.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/mjit.c b/mjit.c
index f6c402debe..0f596e1f49 100644
--- a/mjit.c
+++ b/mjit.c
@@ -887,10 +887,6 @@ skip_cleaning_object_files(struct rb_mjit_unit_list *list)
// No mutex for list, assuming MJIT worker does not exist yet since it's immediately after fork.
list_for_each_safe(&list->head, unit, next, unode) {
-#if USE_JIT_COMPACTION
- if (unit->c_file) unit->c_file_inherited_p = true;
-#endif
-
#if defined(_WIN32) // mswin doesn't reach here either. This is for MinGW.
if (unit->so_file) unit->so_file = NULL;
#endif