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

ruby-changes:32232

From: tmm1 <ko1@a...>
Date: Sat, 21 Dec 2013 07:40:57 +0900 (JST)
Subject: [ruby-changes:32232] tmm1:r44311 (trunk): vm_method.c: use RCLASS_SERIAL macro instead of direct access

tmm1	2013-12-21 07:40:53 +0900 (Sat, 21 Dec 2013)

  New Revision: 44311

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=44311

  Log:
    vm_method.c: use RCLASS_SERIAL macro instead of direct access

  Modified files:
    trunk/vm_method.c
Index: vm_method.c
===================================================================
--- vm_method.c	(revision 44310)
+++ vm_method.c	(revision 44311)
@@ -576,7 +576,7 @@ rb_method_entry_get_without_cache(VALUE https://github.com/ruby/ruby/blob/trunk/vm_method.c#L576
     if (ruby_running) {
 	struct cache_entry *ent;
 	ent = GLOBAL_METHOD_CACHE(klass, id);
-	ent->class_serial = RCLASS_EXT(klass)->class_serial;
+	ent->class_serial = RCLASS_SERIAL(klass);
 	ent->method_state = GET_GLOBAL_METHOD_STATE();
 	ent->defined_class = defined_class;
 	ent->mid = id;
@@ -616,7 +616,7 @@ rb_method_entry(VALUE klass, ID id, VALU https://github.com/ruby/ruby/blob/trunk/vm_method.c#L616
     struct cache_entry *ent;
     ent = GLOBAL_METHOD_CACHE(klass, id);
     if (ent->method_state == GET_GLOBAL_METHOD_STATE() &&
-	ent->class_serial == RCLASS_EXT(klass)->class_serial &&
+	ent->class_serial == RCLASS_SERIAL(klass) &&
 	ent->mid == id) {
 	if (defined_class_ptr)
 	    *defined_class_ptr = ent->defined_class;

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

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