Project

General

Profile

Feature #2328 » suppress_malloc_increase-2.patch

wanabe (_ wanabe), 11/04/2009 08:28 AM

View differences:

gc.c (working copy)
GC_PROF_SET_MALLOC_INFO;
if (malloc_increase > malloc_limit) {
malloc_limit += (size_t)((malloc_increase - malloc_limit) * (double)live / (live + freed));
if (malloc_limit < GC_MALLOC_LIMIT) malloc_limit = GC_MALLOC_LIMIT;
}
malloc_limit -= malloc_limit / 16;
if (malloc_limit < GC_MALLOC_LIMIT) malloc_limit = GC_MALLOC_LIMIT;
malloc_increase = 0;
if (freed < free_min) {
set_heaps_increment(objspace);
(2-2/4)