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: [boehms-gc] Fix ggc-boehm cache hash table support


I was curious to know why you didn't simply swap the values of
HTAB_EMPTY_ENTRY and HTAB_DELETED_ENTRY.  That would let the existing
"disappearing link" code in the GC do the right thing with htabs.

I simply didn't think of this :) OTOH, I don't like the fact that such solution would work just by coincidence :) Moreover, you still have to update hash table deletion statistics somehow.

Plus, various places would break; we're using memset in htab_empty, and calloc/xcalloc in htab_create/htab_try_create. :-)

Paolo


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