This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Adding ggc_free to htab_create_ggc macro?
- From: Daniel Berlin <dberlin at dberlin dot org>
- To: gcc mailing list <gcc at gcc dot gnu dot org>
- Date: Fri, 26 Mar 2004 00:11:56 -0500
- Subject: Adding ggc_free to htab_create_ggc macro?
Now that we have a ggc_free, should we use it in our htab_create_ggc
macro as the htab_free.
I'm not talking about the htab_delete function, I mean the last
argument, which controls what the table itself is allocated/freed what,
not the entries.
That would let the htab free the old ggc_alloc'd memory immediately
when it expands the table.
We use htab_create_ggc in quite a few places, so it seems like it might
be a win.
Has anyone benchmarked this change, and found it to be a loss, or was
this just not explored yet?