This is the mail archive of the gcc-patches@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: [patch] Move loop structures to gc memory


On 5/13/07, Richard Guenther <richard.guenther@gmail.com> wrote:
On 5/13/07, Zdenek Dvorak <rakdver@kam.mff.cuni.cz> wrote:
> Hello,
>
> all the loop structures are now malloc-ed.  Since trees may be
> referenced from the loop structures, this prevents garbage collection
> from being run while loop structures are present.  This is going to be
> impossible once we preserve the loop information across larger portion
> of middle-end.
>
> This patch makes all loop structures gc-allocated.

I suppose it is not possible (or practicable) to mark these references
as new GC roots?

This is one of the many deficiencies of our GC. There is no way to mark roots that are not in GC memory, so anything pointing to anything gc'd has to be GC'd itself :(

Otherwise, the marking code just crashes.


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