From 76d9da900a818a402af31cb4f929ad3d65bd4a88 Mon Sep 17 00:00:00 2001 From: normal Date: Tue, 4 Dec 2018 23:10:17 +0000 Subject: 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 --- mjit.c | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'mjit.c') 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); -- cgit v1.2.3