diff options
author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-11-07 10:45:01 +0000 |
---|---|---|
committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-11-07 10:45:01 +0000 |
commit | a6698bc6761eb944563b1fff5e33cb4dc4e6722c (patch) | |
tree | 0e9e126d634e4d126233ea87d3a0d0d2bb1e3f0c /io.c | |
parent | 2d5233c0f5992c780bb4fa478bf7ee1148557b4c (diff) | |
download | ruby-a6698bc6761eb944563b1fff5e33cb4dc4e6722c.tar.gz |
* gc.c: modify malloc_limit strategy.
* fix default vaues:
GC_MALLOC_LIMIT_GROWTH_FACTOR
GC_MALLOC_LIMIT: 8MB -> 16MB
GC_MALLOC_LIMIT_MAX: 384MB -> 32MB
* algorithm of malloc_limit increment.
if (malloc_increase < malloc_limit) {
next_malloc_limit = malloc_limit * factor
if (malloc_limit > malloc_limit_max) {
malloc_limit = malloc_increase
}
}
This algorithm change malloc_limit from
16MB -> 32MB slowly.
If malloc_limit exceeds malloc_limit_max, then
increase with malloc_increase.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43565 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'io.c')
0 files changed, 0 insertions, 0 deletions