Re: [Gc] Per-thread stack requirements for GC?

Ivan Maidanski ivmai at
Thu Jun 18 08:03:44 PDT 2009


"Talbot, George" <Gtalbot at> wrote:
> Hey guys,
> Technical question-I have a program using the GC with many threads, and am trying to reduce my memory consumption by reducing the thread stack size from 2MB on my Linux machine to something smaller.

2MB is the size of uncommitted stack, right?

You're trying to shrink that size because your app is near the virtual memory limit, right?

> Does anybody have a handle on the stack-size requirements of the BDW collector so that I can safely size my thread stacks?

Check the committed stack size (for a non-main thread) after GC_gcollect().

> Thanks.
> --
> George T. Talbot
> <gtalbot at>


More information about the Gc mailing list