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

ruby-changes:40258

From: ko1 <ko1@a...>
Date: Thu, 29 Oct 2015 14:33:00 +0900 (JST)
Subject: [ruby-changes:40258] ko1:r52339 (trunk): * gc.c (gc_mark_ptr): remove debug code for #11244.

ko1	2015-10-29 14:32:42 +0900 (Thu, 29 Oct 2015)

  New Revision: 52339

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

  Log:
    * gc.c (gc_mark_ptr): remove debug code for #11244.

  Modified files:
    trunk/ChangeLog
    trunk/gc.c
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 52338)
+++ ChangeLog	(revision 52339)
@@ -1,3 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Thu Oct 29 14:07:54 2015  Koichi Sasada  <ko1@a...>
+
+	* gc.c (gc_mark_ptr): remove debug code for #11244.
+
 Thu Oct 29 10:08:33 2015  Eric Wong  <e@8...>
 
 	* variable.c (struct autoload_state): usable as wait-queue head
Index: gc.c
===================================================================
--- gc.c	(revision 52338)
+++ gc.c	(revision 52339)
@@ -4235,17 +4235,6 @@ static void https://github.com/ruby/ruby/blob/trunk/gc.c#L4235
 gc_mark_ptr(rb_objspace_t *objspace, VALUE obj)
 {
     if (LIKELY(objspace->mark_func_data == NULL)) {
-	/* check code for Bug #11244 */
-	if (BUILTIN_TYPE(obj) == T_NONE) {
-	    if (objspace->rgengc.parent_object) {
-		rb_bug("gc_mark_ptr: obj is %s (parent: %s)", obj_info(obj),
-		       obj_info(objspace->rgengc.parent_object));
-	    }
-	    else {
-		rb_bug("gc_mark_ptr: obj is %s (parent is not old)", obj_info(obj));
-	    }
-	}
-
 	rgengc_check_relation(objspace, obj);
 	if (!gc_mark_set(objspace, obj)) return; /* already marked */
 	gc_aging(objspace, obj);

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

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