Project

General

Profile

Actions

Feature #2837

closed

Compile-time constant for HEAP_GROWTH_FACTOR (patch attached)

Added by adgar (Michael Edgar) almost 15 years ago. Updated almost 12 years ago.

Status:
Closed
Target version:
[ruby-core:28487]

Description

=begin
The GC currently increases the size at which newly-created heaps by a factor of 1.8 for each heap. Some find it appropriate to modify this value (REE uses a value of 1 instead of 1.8, for example). In the trunk version of this code, that value is hard-coded in as a constant at 1.8 in gc.c:980.

I've included a patch to expose this as a compile-time constant (HEAP_GROW_FACTOR), and also included getters and setters in the style of the patch I submitted in Issue 1047: http://redmine.ruby-lang.org/issues/show/1047 .
=end


Files

grow_factor.patch (2 KB) grow_factor.patch adgar (Michael Edgar), 03/05/2010 05:20 AM

Related issues 1 (0 open1 closed)

Related to Ruby master - Feature #8015: [patch] tuneable HEAP_GROWTH_FACTORClosedauthorNari (Narihiro Nakamura)03/05/2013Actions
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0Like0