[前][次][番号順一覧][スレッド一覧]

ruby-changes:53983

From: normal <ko1@a...>
Date: Wed, 5 Dec 2018 08:10:30 +0900 (JST)
Subject: [ruby-changes:53983] normal:r66203 (trunk): mjit.c: remove init_list

normal	2018-12-05 08:10:17 +0900 (Wed, 05 Dec 2018)

  New Revision: 66203

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=66203

  Log:
    mjit.c: remove init_list
    
    It is not needed since we have LIST_HEAD_INIT initializer in
    mjit_worker.c

  Modified files:
    trunk/mjit.c
Index: mjit.c
===================================================================
--- mjit.c	(revision 66202)
+++ mjit.c	(revision 66203)
@@ -122,14 +122,6 @@ mjit_free_iseq(const rb_iseq_t *iseq) https://github.com/ruby/ruby/blob/trunk/mjit.c#L122
     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) https://github.com/ruby/ruby/blob/trunk/mjit.c#L656
     }
     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);

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]