Varray memory consumption strikes back
Richard Henderson
rth@redhat.com
Tue Sep 14 10:17:00 GMT 2004
On Mon, Sep 13, 2004 at 10:48:15PM -0600, Jeffrey A Law wrote:
> Another would be to have a single varray for expressions rather
> than having a varray per block for expressions. Each element in
> that varray would have the expression and the block associated
> with the expression.
>
> In the finalizer, you pop elements off that varray as long as
> their block matches the block we are leaving. Remove each
> of the popped elements from the available expression hash
> table.
Or: Push a marker expression, e.g. NULL, on entry to any block.
In the finalizer, pop entries until reaching the marker.
r~
More information about the Gcc
mailing list