This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Make GC tuning parameters adjustable at runtime
- From: Mark Mitchell <mark at codesourcery dot com>
- To: Zack Weinberg <zack at codesourcery dot com>, "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>
- Date: Sun, 10 Nov 2002 18:33:41 -0800
- Subject: Re: Make GC tuning parameters adjustable at runtime
--On Sunday, November 10, 2002 02:22:31 PM -0800 Zack Weinberg
<zack@codesourcery.com> wrote:
Both GC implementations have a couple of tuning parameters which are
currently only adjustable at compile time. This patch makes them both
accessible through the --param mechanism. The primary rationale is to
allow toggling the effect of GGC_ALWAYS_COLLECT at runtime, which is
handy for chasing GC bugs. However, it also enables performance
tweaking -- for instance, a low-memory machine might do better with a
smaller setting for GGC_MIN
Have you measure the effect, if any, on compile-time performance merely
by making these things dynamic?
I fully agree with your desire to make them dynamic, but if it slows down
GC a lot, that would make me think twice.
Thanks,
--
Mark Mitchell mark@codesourcery.com
CodeSourcery, LLC http://www.codesourcery.com