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

ruby-changes:32163

From: ko1 <ko1@a...>
Date: Mon, 16 Dec 2013 19:22:14 +0900 (JST)
Subject: [ruby-changes:32163] ko1:r44242 (trunk): * gc.c (rb_objspace_markable_object_p): should check special_const_p

ko1	2013-12-16 19:22:03 +0900 (Mon, 16 Dec 2013)

  New Revision: 44242

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

  Log:
    * gc.c (rb_objspace_markable_object_p): should check special_const_p
      first (by is_markable_object()).

  Modified files:
    trunk/ChangeLog
    trunk/gc.c
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 44241)
+++ ChangeLog	(revision 44242)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Mon Dec 16 19:19:19 2013  Koichi Sasada  <ko1@a...>
+
+	* gc.c (rb_objspace_markable_object_p): should check special_const_p
+	  first (by is_markable_object()).
+
 Mon Dec 16 19:12:54 2013  Koichi Sasada  <ko1@a...>
 
 	* ext/objspace/objspace.c (reachable_object_from_root_i): use
Index: gc.c
===================================================================
--- gc.c	(revision 44241)
+++ gc.c	(revision 44242)
@@ -2267,7 +2267,7 @@ int https://github.com/ruby/ruby/blob/trunk/gc.c#L2267
 rb_objspace_markable_object_p(VALUE obj)
 {
     rb_objspace_t *objspace = &rb_objspace;
-    return is_live_object(objspace, obj) && is_markable_object(objspace, obj);
+    return is_markable_object(objspace, obj) && is_live_object(objspace, obj);
 }
 
 /*

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

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