GC question

Andreas Huber ahuber at ping.at
Thu Nov 5 08:58:48 PST 1998


I don't know if this is the right place to ask but I'll try anyway...

Is it really necessary to scan the entire (active) stack of a thread or
would it be sufficient to scan the part of the stack that contains the
method locals? IOW, what would the gc find if it scanned the entire
stack? Does the VM itself rely on the memory it allocates being gc'd or
is it disciplined enough to free memory it no longer uses?

The reason I'm asking this is that I'm trying to figure out a way to
make the gc work with native threads that don't allow a thread to
inspect another thread's stack.


More information about the kaffe mailing list