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

ruby-changes:38929

From: ko1 <ko1@a...>
Date: Wed, 24 Jun 2015 14:30:46 +0900 (JST)
Subject: [ruby-changes:38929] ko1:r51010 (trunk): * gc.c (gc_mark_ptr): add a check code for #11244.

ko1	2015-06-24 14:30:27 +0900 (Wed, 24 Jun 2015)

  New Revision: 51010

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

  Log:
    * gc.c (gc_mark_ptr): add a check code for #11244.
      It should be removed later. But we can remain this check
      because it is only a branch.

  Modified files:
    trunk/ChangeLog
    trunk/gc.c
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 51009)
+++ ChangeLog	(revision 51010)
@@ -1,3 +1,10 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Wed Jun 24 14:25:17 2015  Koichi Sasada  <ko1@a...>
+
+	* gc.c (gc_mark_ptr): add a check code for #11244.
+
+	  It should be removed later. But we can remain this check
+	  because it is only a branch.
+
 Wed Jun 24 12:49:11 2015  Nobuyoshi Nakada  <nobu@r...>
 
 	* string.c (rb_fstring_cstr): new function to make a fstring from
Index: gc.c
===================================================================
--- gc.c	(revision 51009)
+++ gc.c	(revision 51010)
@@ -4193,6 +4193,10 @@ gc_mark_ptr(rb_objspace_t *objspace, VAL https://github.com/ruby/ruby/blob/trunk/gc.c#L4193
 {
     if (LIKELY(objspace->mark_func_data == NULL)) {
 	rgengc_check_relation(objspace, obj);
+
+	/* check code for Bug #11244 */
+	if (BUILTIN_TYPE(obj) == T_NONE) rb_bug("gc_mark_ptr: obj is T_NONE");
+
 	if (!gc_mark_set(objspace, obj)) return; /* already marked */
 	gc_aging(objspace, obj);
 	gc_grey(objspace, obj);

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

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