This is the mail archive of the
mailing list for the GCC project.
Re: robustness vs. conservative GC
On 10-Aug-2001, Jeff Sturm <firstname.lastname@example.org> wrote:
> Supposing you do have exact type information for the stack, how can GC
> be certain a stack slot is initialized?
> You can initialize each stack frame on function entry, but it incurs some
Yes, that's probably the best approach, and yes, it does incur some cost.
Note that you only need to initialize pointers on the stack;
integers, floats, etc. on the stack can safely be left uninitialized.
Fergus Henderson <email@example.com> | "I have always known that the pursuit
The University of Melbourne | of excellence is a lethal habit"
WWW: <http://www.cs.mu.oz.au/~fjh> | -- the last words of T. S. Garp.