From: ivmai Date: Thu, 5 Nov 2009 08:12:27 +0000 (+0000) Subject: 2009-11-05 Ivan Maidanski X-Git-Tag: gc7_2alpha4~17 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e170f30676739a2396b35d670c6fb977abb94356;p=platform%2Fupstream%2Flibgc.git 2009-11-05 Ivan Maidanski * tests/test.c (check_heap_stats): Take into account the unmapped memory size when checking for "Unexpected heap growth"; remove FIXME. --- diff --git a/ChangeLog b/ChangeLog index f03c613..72bde0d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2009-11-05 Ivan Maidanski + + * tests/test.c (check_heap_stats): Take into account the unmapped + memory size when checking for "Unexpected heap growth"; remove + FIXME. + 2009-11-03 Hans Boehm * alloc.c: Revert last change. diff --git a/tests/test.c b/tests/test.c index 346436a..783d82f 100644 --- a/tests/test.c +++ b/tests/test.c @@ -1323,8 +1323,7 @@ void check_heap_stats(void) (void)GC_printf("Incorrect execution - missed some allocations\n"); FAIL; } - if (GC_get_heap_size() > max_heap_sz*n_tests) { - /* FIXME: is the condition correct? */ + if (GC_get_heap_size() + GC_get_unmapped_bytes() > max_heap_sz*n_tests) { (void)GC_printf("Unexpected heap growth - collector may be broken\n"); FAIL; }