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

ruby-changes:33679

From: nari <ko1@a...>
Date: Wed, 30 Apr 2014 19:58:51 +0900 (JST)
Subject: [ruby-changes:33679] nari:r45760 (trunk): * gc.c (gc_after_sweep): suppress unnecessary expanding heap.

nari	2014-04-30 19:58:45 +0900 (Wed, 30 Apr 2014)

  New Revision: 45760

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

  Log:
    * gc.c (gc_after_sweep): suppress unnecessary expanding heap.
      Tomb heap pages are freed pages here, so expanding heap is
      not required.

  Modified files:
    trunk/ChangeLog
    trunk/gc.c
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 45759)
+++ ChangeLog	(revision 45760)
@@ -1,3 +1,9 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Wed Apr 30 19:46:23 2014  Narihiro Nakamura  <authornari@g...>
+
+	* gc.c (gc_after_sweep): suppress unnecessary expanding heap.
+	  Tomb heap pages are freed pages here, so expanding heap is
+	  not required.
+
 Wed Apr 30 17:58:40 2014  Koichi Sasada  <ko1@a...>
 
 	* vm.c (invoke_block_from_c): add VM_FRAME_FLAG_BMETHOD to record
Index: gc.c
===================================================================
--- gc.c	(revision 45759)
+++ gc.c	(revision 45760)
@@ -3005,7 +3005,6 @@ gc_after_sweep(rb_objspace_t *objspace) https://github.com/ruby/ruby/blob/trunk/gc.c#L3005
     /* if heap_pages has unused pages, then assign them to increment */
     if (heap_pages_increment < heap_tomb->page_length) {
 	heap_pages_increment = heap_tomb->page_length;
-	heap_pages_expand_sorted(objspace);
     }
 
 #if RGENGC_PROFILE > 0

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

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