mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63053 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
abb19b13ee
commit
fcc5957241
1 changed files with 1 additions and 0 deletions
1
mjit.c
1
mjit.c
|
@ -1379,6 +1379,7 @@ mjit_init(struct mjit_options *opts)
|
|||
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);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue