This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Advise needed on varasm.c constant recording bug


    If the types can still be referenced, they shouldn't be garbage
    collected; if they're not garbage collected, the memory can't be
    reused.

The point is that the type is not referenced by virtue of it being in
that descriptor: all that happens is the address of the type node is
compared.  As I said, we could teach GC about the address buried in
there, but it isn't even always properly aligned, so that would be much
more trouble than it's worth.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]