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

ruby-changes:36889

From: ko1 <ko1@a...>
Date: Wed, 24 Dec 2014 18:22:51 +0900 (JST)
Subject: [ruby-changes:36889] ko1:r48970 (trunk): * gc.c: remove unused rb_objspace_t::rgengc::old_objects_at_gc_start.

ko1	2014-12-24 18:22:42 +0900 (Wed, 24 Dec 2014)

  New Revision: 48970

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

  Log:
    * gc.c: remove unused rb_objspace_t::rgengc::old_objects_at_gc_start.

  Modified files:
    trunk/ChangeLog
    trunk/gc.c
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 48969)
+++ ChangeLog	(revision 48970)
@@ -1,3 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Wed Dec 24 18:21:27 2014  Koichi Sasada  <ko1@a...>
+
+	* gc.c: remove unused rb_objspace_t::rgengc::old_objects_at_gc_start.
+
 Wed Dec 24 13:25:22 2014  NARUSE, Yui  <naruse@r...>
 
 	* tool/redmine-backporter.rb: require view_changesets permission.
Index: gc.c
===================================================================
--- gc.c	(revision 48969)
+++ gc.c	(revision 48970)
@@ -574,7 +574,6 @@ typedef struct rb_objspace { https://github.com/ruby/ruby/blob/trunk/gc.c#L574
 	size_t remembered_wb_unprotected_objects_limit;
 	size_t old_objects;
 	size_t old_objects_limit;
-	size_t old_objects_at_gc_start;
 
 #if RGENGC_ESTIMATE_OLDMALLOC
 	size_t oldmalloc_increase;
@@ -4915,8 +4914,6 @@ gc_marks_start(rb_objspace_t *objspace, https://github.com/ruby/ruby/blob/trunk/gc.c#L4914
     gc_stat_transition(objspace, gc_stat_marking);
 
 #if USE_RGENGC
-    objspace->rgengc.old_objects_at_gc_start = objspace->rgengc.old_objects;
-
     if (full_mark) {
 #if GC_ENABLE_INCREMENTAL_MARK
 	objspace->rincgc.step_slots = (objspace->marked_slots * 2) / ((objspace->rincgc.pooled_slots / HEAP_OBJ_LIMIT) + 1);

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

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