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

ruby-changes:31950

From: ko1 <ko1@a...>
Date: Fri, 6 Dec 2013 15:26:09 +0900 (JST)
Subject: [ruby-changes:31950] ko1:r44029 (trunk): * gc.c (gc_start_internal, rb_gc): do not need

ko1	2013-12-06 15:26:02 +0900 (Fri, 06 Dec 2013)

  New Revision: 44029

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

  Log:
    * gc.c (gc_start_internal, rb_gc): do not need
      heap_pages_free_unused_pages() here.
      It was done in after_sweep().
    * gc.c (rb_gc): The reason is now GPR_FLAG_CAPI.

  Modified files:
    trunk/ChangeLog
    trunk/gc.c
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 44028)
+++ ChangeLog	(revision 44029)
@@ -1,3 +1,11 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Fri Dec  6 15:24:30 2013  Koichi Sasada  <ko1@a...>
+
+	* gc.c (gc_start_internal, rb_gc): do not need 
+	  heap_pages_free_unused_pages() here.
+	  It was done in after_sweep().
+
+	* gc.c (rb_gc): The reason is now GPR_FLAG_CAPI.
+
 Fri Dec  6 14:05:19 2013  Aman Gupta <ruby@t...>
 
 	* gc.c (gc_start_internal): GC.start() now accepts two optional
Index: gc.c
===================================================================
--- gc.c	(revision 44028)
+++ gc.c	(revision 44029)
@@ -5039,7 +5039,6 @@ gc_start_internal(int argc, VALUE *argv, https://github.com/ruby/ruby/blob/trunk/gc.c#L5039
 
     garbage_collect(objspace, full_mark, immediate_sweep, GPR_FLAG_METHOD);
     if (!finalizing) finalize_deferred(objspace);
-    heap_pages_free_unused_pages(objspace);
 
     return Qnil;
 }
@@ -5055,9 +5054,8 @@ void https://github.com/ruby/ruby/blob/trunk/gc.c#L5054
 rb_gc(void)
 {
     rb_objspace_t *objspace = &rb_objspace;
-    garbage_collect(objspace, TRUE, TRUE, GPR_FLAG_METHOD);
+    garbage_collect(objspace, TRUE, TRUE, GPR_FLAG_CAPI);
     if (!finalizing) finalize_deferred(objspace);
-    heap_pages_free_unused_pages(objspace);
 }
 
 int

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

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