From: nobu.nokada@... Date: 2005-07-14T08:21:54+09:00 Subject: Re: GC tweak Hi, At Thu, 14 Jul 2005 02:17:18 +0900, Stefan Kaes wrote in [ruby-core:05445]: > Any comments? > +static void set_gc_parameters() > +{ > + char* min_slots_ptr = getenv("RUBY_HEAP_MIN_SLOTS"); > + if (min_slots_ptr != NULL) { > + int min_slots_i = atoi(min_slots_ptr); > + if (min_slots_i > 0) { > + heap_slots = min_slots_i; > + heap_min_slots = min_slots_i; > + } > + } > + char* free_min_ptr = getenv("RUBY_HEAP_FREE_MIN"); This is disallowed in C89. And in 1.9, stdio is not used in other places, so you may want to flush stderr after fprintf. -- Nobu Nakada