ruby-changes:51868
From: k0kubun <ko1@a...>
Date: Sat, 28 Jul 2018 07:27:12 +0900 (JST)
Subject: [ruby-changes:51868] k0kubun:r64082 (trunk): mjit.c: clean up unit link from iseq
k0kubun 2018-07-28 07:27:04 +0900 (Sat, 28 Jul 2018) New Revision: 64082 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=64082 Log: mjit.c: clean up unit link from iseq Modified files: trunk/mjit.c Index: mjit.c =================================================================== --- mjit.c (revision 64081) +++ mjit.c (revision 64082) @@ -562,8 +562,10 @@ clean_object_files(struct rb_mjit_unit * https://github.com/ruby/ruby/blob/trunk/mjit.c#L562 static void free_unit(struct rb_mjit_unit *unit) { - if (unit->iseq) /* ISeq is not GCed */ + if (unit->iseq) { /* ISeq is not GCed */ unit->iseq->body->jit_func = (mjit_func_t)NOT_COMPILED_JIT_ISEQ_FUNC; + unit->iseq->body->jit_unit = NULL; + } if (unit->handle) /* handle is NULL if it's in queue */ dlclose(unit->handle); clean_object_files(unit); -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/