Project

General

Profile

Feature #2328 » suppress_malloc_increase-2.patch

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

View differences:

gc.c (working copy)
1918 1918
    GC_PROF_SET_MALLOC_INFO;
1919 1919
    if (malloc_increase > malloc_limit) {
1920 1920
	malloc_limit += (size_t)((malloc_increase - malloc_limit) * (double)live / (live + freed));
1921
	if (malloc_limit < GC_MALLOC_LIMIT) malloc_limit = GC_MALLOC_LIMIT;
1922 1921
    }
1922
    malloc_limit -= malloc_limit / 16;
1923
    if (malloc_limit < GC_MALLOC_LIMIT) malloc_limit = GC_MALLOC_LIMIT;
1923 1924
    malloc_increase = 0;
1924 1925
    if (freed < free_min) {
1925 1926
        set_heaps_increment(objspace);