aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornari <nari@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-04-30 10:58:45 +0000
committernari <nari@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-04-30 10:58:45 +0000
commitca319081ce97f0c6db7695f919d9bbd74ed8921d (patch)
tree2103165dc7e6a404d1b1a324cb63db4ec38073dc
parent751a8dce6abb42671039229aacfd8423a27cfc28 (diff)
downloadruby-ca319081ce97f0c6db7695f919d9bbd74ed8921d.tar.gz
* gc.c (gc_after_sweep): suppress unnecessary expanding heap.
Tomb heap pages are freed pages here, so expanding heap is not required. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45760 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog6
-rw-r--r--gc.c1
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 7c315cc403..67dc1e3a84 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+Wed Apr 30 19:46:23 2014 Narihiro Nakamura <authornari@gmail.com>
+
+ * 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@atdot.net>
* vm.c (invoke_block_from_c): add VM_FRAME_FLAG_BMETHOD to record
diff --git a/gc.c b/gc.c
index 49b54e8b26..8ce33420bf 100644
--- a/gc.c
+++ b/gc.c
@@ -3005,7 +3005,6 @@ gc_after_sweep(rb_objspace_t *objspace)
/* 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