summaryrefslogtreecommitdiff
path: root/mjit.c
diff options
context:
space:
mode:
authornormal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-12-04 23:10:17 +0000
committernormal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-12-04 23:10:17 +0000
commit76d9da900a818a402af31cb4f929ad3d65bd4a88 (patch)
treec0db52b95e9738d3f29c96090f2fc933f4b73a76 /mjit.c
parentd612c44dad8a5d4c373b0c4bc08a99e3dc06498e (diff)
mjit.c: remove init_list
It is not needed since we have LIST_HEAD_INIT initializer in mjit_worker.c git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66203 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'mjit.c')
-rw-r--r--mjit.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/mjit.c b/mjit.c
index 0d9baadd67..0f4b9fddc6 100644
--- a/mjit.c
+++ b/mjit.c
@@ -122,14 +122,6 @@ mjit_free_iseq(const rb_iseq_t *iseq)
CRITICAL_SECTION_FINISH(4, "mjit_free_iseq");
}
-/* Do we need this...? */
-static void
-init_list(struct rb_mjit_unit_list *list)
-{
- list_head_init(&list->head);
- list->length = 0;
-}
-
/* Free unit list. This should be called only when worker is finished
because node of unit_queue and one of active_units may have the same unit
during proceeding unit. */
@@ -664,10 +656,6 @@ mjit_init(struct mjit_options *opts)
}
pch_owner_pid = getpid();
- init_list(&unit_queue);
- init_list(&active_units);
- init_list(&compact_units);
-
/* Initialize mutex */
rb_native_mutex_initialize(&mjit_engine_mutex);
rb_native_cond_initialize(&mjit_pch_wakeup);