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

ruby-changes:37923

From: ko1 <ko1@a...>
Date: Wed, 18 Mar 2015 17:13:22 +0900 (JST)
Subject: [ruby-changes:37923] ko1:r50004 (trunk): * gc.c (check_rvalue_consistency): do not need to check is_sweeping().

ko1	2015-03-18 17:12:44 +0900 (Wed, 18 Mar 2015)

  New Revision: 50004

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

  Log:
    * gc.c (check_rvalue_consistency): do not need to check is_sweeping().

  Modified files:
    trunk/ChangeLog
    trunk/gc.c
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 50003)
+++ ChangeLog	(revision 50004)
@@ -1,3 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Wed Mar 18 17:10:01 2015  Koichi Sasada  <ko1@a...>
+
+	* gc.c (check_rvalue_consistency): do not need to check is_sweeping().
+
 Wed Mar 18 14:13:22 2015  Koichi Sasada  <ko1@a...>
 
 	* benchmark/bm_vm1_gc_wb_ary.rb: run GC to finish "marking" phase.
Index: gc.c
===================================================================
--- gc.c	(revision 50003)
+++ gc.c	(revision 50004)
@@ -992,7 +992,7 @@ check_rvalue_consistency(const VALUE obj https://github.com/ruby/ruby/blob/trunk/gc.c#L992
 	if (!is_full_marking(objspace) && long_lived_bit && age != RVALUE_OLD_AGE && !wb_unprotected_bit) {
 	    rb_bug("check_rvalue_consistency: %s is long lived, but not old (age: %d) and not WB unprotected.\n", obj_info(obj), age);
 	}
-	if (!is_marking(objspace) && !is_sweeping(objspace) && long_lived_bit && RVALUE_MARK_BITMAP(obj) == 0) {
+	if (!is_marking(objspace) && long_lived_bit && RVALUE_MARK_BITMAP(obj) == 0) {
 	    rb_bug("check_rvalue_consistency: %s is long lived, but is not marked while !gc.", obj_info(obj));
 	}
 

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

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