This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Re: Patch: gcj ggc patch
Richard Henderson wrote:
> On Wed, Mar 06, 2002 at 02:41:42PM -0800, Per Bothner wrote:
>
>>Does an identifier node stashed in a global variable need
>>to be explicitly ggc-registerd?
>>
>
> It would, IMO, be for the best to really mark _all_ roots,
> even if they're considered to be redundant.
That seems silly. Deliberate redundancy is not normally
how Gcc is engineered (except for sanity checks to detect errors).
Redundantly marking identifier nodes leads to confusion and bugs,
because it is not clear whose responsibility it actually
is to mark the identifier.
This is a specification issue of the semantics of identifier
nodes, and there should be a clear answer: Can an identifier,
once it has been created, ever be garbage collected?
--
--Per Bothner
per@bothner.com http://www.bothner.com/per/