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

ruby-changes:51859

From: k0kubun <ko1@a...>
Date: Fri, 27 Jul 2018 15:01:51 +0900 (JST)
Subject: [ruby-changes:51859] k0kubun:r64073 (trunk): mjit.c: clarify the intention of setting 0

k0kubun	2018-07-27 15:01:46 +0900 (Fri, 27 Jul 2018)

  New Revision: 64073

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

  Log:
    mjit.c: clarify the intention of setting 0
    
    which was originally NULL before r62221

  Modified files:
    trunk/mjit.c
Index: mjit.c
===================================================================
--- mjit.c	(revision 64072)
+++ mjit.c	(revision 64073)
@@ -539,7 +539,7 @@ static void https://github.com/ruby/ruby/blob/trunk/mjit.c#L539
 free_unit(struct rb_mjit_unit *unit)
 {
     if (unit->iseq) /* ISeq is not GCed */
-        unit->iseq->body->jit_func = 0;
+        unit->iseq->body->jit_func = (mjit_func_t)NOT_ADDED_JIT_ISEQ_FUNC;
     if (unit->handle) /* handle is NULL if it's in queue */
         dlclose(unit->handle);
     clean_so_file(unit);

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

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