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

ruby-changes:45569

From: nobu <ko1@a...>
Date: Thu, 16 Feb 2017 23:48:21 +0900 (JST)
Subject: [ruby-changes:45569] nobu:r57642 (trunk): variable.c: fatal rb_generic_ivar_table

nobu	2017-02-16 23:48:12 +0900 (Thu, 16 Feb 2017)

  New Revision: 57642

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

  Log:
    variable.c: fatal rb_generic_ivar_table
    
    * variable.c (rb_generic_ivar_table): raise fatal error.

  Modified files:
    trunk/variable.c
Index: variable.c
===================================================================
--- variable.c	(revision 57641)
+++ variable.c	(revision 57642)
@@ -942,6 +942,7 @@ rb_alias_variable(ID name1, ID name2) https://github.com/ruby/ruby/blob/trunk/variable.c#L942
     entry1->var = entry2->var;
 }
 
+#if 0
 struct gen_ivar_compat_tbl {
     struct gen_ivtbl *ivtbl;
     st_table *tbl;
@@ -960,6 +961,7 @@ gen_ivar_compat_tbl_i(st_data_t id, st_d https://github.com/ruby/ruby/blob/trunk/variable.c#L961
     }
     return ST_CONTINUE;
 }
+#endif
 
 static int
 gen_ivtbl_get(VALUE obj, struct gen_ivtbl **ivtbl)
@@ -977,6 +979,7 @@ gen_ivtbl_get(VALUE obj, struct gen_ivtb https://github.com/ruby/ruby/blob/trunk/variable.c#L979
 st_table*
 rb_generic_ivar_table(VALUE obj)
 {
+#if 0
     st_table *iv_index_tbl = RCLASS_IV_INDEX_TBL(rb_obj_class(obj));
     struct gen_ivar_compat_tbl a;
     st_data_t d;
@@ -1003,6 +1006,11 @@ rb_generic_ivar_table(VALUE obj) https://github.com/ruby/ruby/blob/trunk/variable.c#L1006
     st_foreach_safe(iv_index_tbl, gen_ivar_compat_tbl_i, (st_data_t)&a);
 
     return a.tbl;
+#else
+    ONLY_FOR_INTERNAL_USE("rb_generic_ivar_table()");
+    UNREACHABLE;
+    return 0;
+#endif
 }
 
 static VALUE

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

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