This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: [Fwd: Uninitialized stack gaps and conservative garbage collection]
- From: Tom Tromey <tromey at redhat dot com>
- To: Bryce McKinlay <mckinlay at redhat dot com>
- Cc: Ranjit Mathew <rmathew at gmail dot com>, java at gcc dot gnu dot org
- Date: 25 May 2005 09:41:02 -0600
- Subject: Re: [Fwd: Uninitialized stack gaps and conservative garbage collection]
- References: <429429DE.4010400@gmail.com> <429483C7.1070303@redhat.com>
- Reply-to: tromey at redhat dot com
>>>>> "Bryce" == Bryce McKinlay <mckinlay@redhat.com> writes:
Bryce> Hopefully this is rare in GCJ, however, as the GC only
Bryce> considers pointers to the start of an object to be valid -
Bryce> interior pointers are disregarded, significantly reducing the
Bryce> chance of a mis-identification.
My understanding is that this is only true for pointers on the heap.
Interior pointers found while scanning the stack will still cause
retention. The rationale is that the optimizer might result in code
where no non-interior pointer is kept.
Tom