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

ruby-changes:31800

From: ko1 <ko1@a...>
Date: Wed, 27 Nov 2013 17:56:58 +0900 (JST)
Subject: [ruby-changes:31800] ko1:r43879 (trunk): * gc.c (gc_mark_stacked_objects): check only when check_mode > 0.

ko1	2013-11-27 17:56:48 +0900 (Wed, 27 Nov 2013)

  New Revision: 43879

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

  Log:
    * gc.c (gc_mark_stacked_objects): check only when check_mode > 0.

  Modified files:
    trunk/ChangeLog
    trunk/gc.c
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 43878)
+++ ChangeLog	(revision 43879)
@@ -1,3 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Wed Nov 27 17:54:57 2013  Koichi Sasada  <ko1@a...>
+
+	* gc.c (gc_mark_stacked_objects): check only when check_mode > 0.
+
 Wed Nov 27 16:07:19 2013  Aman Gupta <ruby@t...>
 
 	* test/ruby/test_gc.rb (class TestGc): Fix warning in
Index: gc.c
===================================================================
--- gc.c	(revision 43878)
+++ gc.c	(revision 43879)
@@ -3908,7 +3908,7 @@ gc_mark_stacked_objects(rb_objspace_t *o https://github.com/ruby/ruby/blob/trunk/gc.c#L3908
 
     if (!mstack->index) return;
     while (pop_mark_stack(mstack, &obj)) {
-	if (!gc_marked(objspace, obj)) {
+	if (RGENGC_CHECK_MODE > 0 && !gc_marked(objspace, obj)) {
 	    rb_bug("gc_mark_stacked_objects: %p (%s) is infant, but not marked.", (void *)obj, obj_type_name(obj));
 	}
         gc_mark_children(objspace, obj);

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

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