On Mon, Jun 2, 2025 at 9:01 PM Hou Tao <houtao@xxxxxxxxxxxxxxx> wrote: > > > > >> Maybe adding a > >> bit flag to the pointer of the element to indicate that it has been > >> destroyed is OK ? Will try it in the next revision. > > Not sure what you have in mind. > > Er. I was just wondering that if it is possible to the bit 0 of the > element pointer to indicate that the element has been destroyed, > therefore, the second invocation of dtor can be avoided. but the element was deleted from htab bucket, so what pointer will you tag with extra bit?