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

ruby-changes:53228

From: normal <ko1@a...>
Date: Wed, 31 Oct 2018 03:26:17 +0900 (JST)
Subject: [ruby-changes:53228] normal:r65443 (trunk): mjit.c (free_list): clear .length

normal	2018-10-31 03:26:12 +0900 (Wed, 31 Oct 2018)

  New Revision: 65443

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

  Log:
    mjit.c (free_list): clear .length
    
    For robustness against future changes. There should be no impact
    at the moment,here, but we may call mjit_finish more than once
    in a process lifetime in the future (implementing "stop"
    instead of just "pause")

  Modified files:
    trunk/mjit.c
Index: mjit.c
===================================================================
--- mjit.c	(revision 65442)
+++ mjit.c	(revision 65443)
@@ -135,6 +135,7 @@ free_list(struct rb_mjit_unit_list *list https://github.com/ruby/ruby/blob/trunk/mjit.c#L135
         free_unit(node->unit);
         xfree(node);
     }
+    list->length = 0;
 }
 
 /* MJIT info related to an existing continutaion.  */

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

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