From: Geoff Keating <geoffk@geoffk.org>
To: Daniel Berlin <dberlin@dberlin.org>
Cc: "gcc@gcc.gnu.org" <gcc@gcc.gnu.org>, Diego Novillo <dnovillo@redhat.com>
Subject: Re: [tree-ssa] Garbage collector x bb annotations
Date: Wed, 08 Oct 2003 21:30:00 -0000 [thread overview]
Message-ID: <jmsmm3zacc.fsf@desire.geoffk.org> (raw)
In-Reply-To: <2B078B03-F99A-11D7-BF76-000A95AF1FAE@dberlin.org>
Daniel Berlin <dberlin@dberlin.org> writes:
> On Oct 8, 2003, at 9:53 AM, Zdenek Dvorak wrote:
>
> > Hello,
> >
> >>> I have just run into the following problem: dom_children get
> >>> released by
> >>> ggc_collect call in tree-ssa-pre. Allocating them by ggc seems
> >>> wrong to
> >>> me, since basic block annotations are allocated from obstack and
> >>> invisible to garbage collector.
> >>>
> >> Yeah. But there's more than that, unfortunately. All the fields in
> >> struct bb_ann_d are ggc allocated. The real solution would be to
> >> finally convert basic blocks to ggc. Volunteers?
> >
> > I may try (I need it anyway for tree-ssa-cfg branch). The whole issue
> > is however quite ugly as this combines basically all allocation
> > mechanisms that are available in gcc (basic blocks themselves are pool
> > allocated).
>
> They used to be obstack allocated, so consider yourself lucky :P.
>
> You could add a "fields_only" flag and modify gengtype to not mark the
> actual bb, only it's fields.
This won't work, since bb structures refer to each other.
--
- Geoffrey Keating <geoffk@geoffk.org>
next prev parent reply other threads:[~2003-10-08 21:30 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-10-06 22:31 Zdenek Dvorak
2003-10-07 2:53 ` Daniel Berlin
2003-10-08 13:27 ` Diego Novillo
2003-10-08 13:53 ` Zdenek Dvorak
2003-10-08 14:02 ` Diego Novillo
2003-10-08 14:17 ` Daniel Berlin
2003-10-08 21:30 ` Geoff Keating [this message]
2003-10-08 22:34 ` Daniel Berlin
2003-10-08 22:49 ` Geoff Keating
2003-10-09 14:42 ` Zdenek Dvorak
2003-10-08 21:32 ` Geoff Keating
2003-10-08 21:37 ` Zdenek Dvorak
2003-10-08 22:58 ` Geoff Keating
2003-10-08 23:01 ` Daniel Berlin
2003-10-09 0:03 ` David Edelsohn
2003-10-08 23:05 ` Zdenek Dvorak
2003-10-08 23:10 ` Daniel Berlin
2003-10-08 23:12 ` Zdenek Dvorak
2003-10-09 3:31 ` Jeff Sturm
2003-10-08 13:58 S. Bosscher
2003-10-08 14:03 ` Diego Novillo
2003-10-08 14:03 S. Bosscher
2003-10-08 14:19 ` Daniel Berlin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=jmsmm3zacc.fsf@desire.geoffk.org \
--to=geoffk@geoffk.org \
--cc=dberlin@dberlin.org \
--cc=dnovillo@redhat.com \
--cc=gcc@gcc.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).