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

ruby-changes:32157

From: ko1 <ko1@a...>
Date: Mon, 16 Dec 2013 18:06:02 +0900 (JST)
Subject: [ruby-changes:32157] ko1:r44236 (trunk): * gc.c (rb_objspace_markable_object_p): it should be live objects.

ko1	2013-12-16 18:05:57 +0900 (Mon, 16 Dec 2013)

  New Revision: 44236

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

  Log:
    * gc.c (rb_objspace_markable_object_p): it should be live objects.

  Modified files:
    trunk/ChangeLog
    trunk/gc.c
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 44235)
+++ ChangeLog	(revision 44236)
@@ -1,3 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Mon Dec 16 18:04:28 2013  Koichi Sasada  <ko1@a...>
+
+	* gc.c (rb_objspace_markable_object_p): it should be live objects.
+
 Mon Dec 16 18:00:51 2013  Koichi Sasada  <ko1@a...>
 
 	* gc.c (rb_objspace_each_objects): should not clear dont_lazy_sweep
Index: gc.c
===================================================================
--- gc.c	(revision 44235)
+++ gc.c	(revision 44236)
@@ -2266,7 +2266,7 @@ is_markable_object(rb_objspace_t *objspa https://github.com/ruby/ruby/blob/trunk/gc.c#L2266
 int
 rb_objspace_markable_object_p(VALUE obj)
 {
-    return is_markable_object(&rb_objspace, obj);
+    return is_live_object(obj) && is_markable_object(&rb_objspace, obj);
 }
 
 /*

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

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