ruby-changes:50846
From: k0kubun <ko1@a...>
Date: Sun, 1 Apr 2018 10:42:01 +0900 (JST)
Subject: [ruby-changes:50846] k0kubun:r63053 (trunk): mjit.c: make Object's class serial valid in JIT
k0kubun 2018-04-01 10:41:55 +0900 (Sun, 01 Apr 2018) New Revision: 63053 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=63053 Log: mjit.c: make Object's class serial valid in JIT Without this change, we couldn't inline method call setup for methods which are defined in the top level. Modified files: trunk/mjit.c Index: mjit.c =================================================================== --- mjit.c (revision 63052) +++ mjit.c (revision 63053) @@ -1379,6 +1379,7 @@ mjit_init(struct mjit_options *opts) https://github.com/ruby/ruby/blob/trunk/mjit.c#L1379 valid_class_serials = rb_hash_new(); rb_obj_hide(valid_class_serials); rb_gc_register_mark_object(valid_class_serials); + mjit_add_class_serial(RCLASS_SERIAL(rb_cObject)); if (RCLASS_CONST_TBL(rb_cObject)) { rb_id_table_foreach(RCLASS_CONST_TBL(rb_cObject), valid_class_serials_add_i, NULL); } -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/