From: Ivan Maidanski Date: Tue, 6 Nov 2012 03:52:34 +0000 (+0400) Subject: Add FIXME for GC_max_large_allocd_bytes and GC_mark_stack_size growth X-Git-Tag: gc7_4_0~173 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8680349166f0105fa9aa059494ddc69f656a4b9a;p=gc Add FIXME for GC_max_large_allocd_bytes and GC_mark_stack_size growth * malloc.c (GC_alloc_large): Add FIXME for GC_max_large_allocd_bytes (currently there is no way for the variable value to be decreased over the run time). * mark.c (alloc_mark_stack): Add FIXME for GC_mark_stack_size. --- diff --git a/malloc.c b/malloc.c index 0bf84b22..4469a3bd 100644 --- a/malloc.c +++ b/malloc.c @@ -73,6 +73,7 @@ GC_INNER ptr_t GC_alloc_large(size_t lb, int k, unsigned flags) if (GC_large_allocd_bytes > GC_max_large_allocd_bytes) GC_max_large_allocd_bytes = GC_large_allocd_bytes; } + /* FIXME: Do we need some way to reset GC_max_large_allocd_bytes? */ result = h -> hb_body; } return result; diff --git a/mark.c b/mark.c index 451673d2..433086f4 100644 --- a/mark.c +++ b/mark.c @@ -1225,6 +1225,7 @@ static void alloc_mark_stack(size_t n) } GC_mark_stack = new_stack; GC_mark_stack_size = n; + /* FIXME: Do we need some way to reset GC_mark_stack_size? */ GC_mark_stack_limit = new_stack + n; if (GC_print_stats) { GC_log_printf("Grew mark stack to %lu frames\n",