Re: Fix object re-hashing
- From
Linus Torvalds <torvalds@osdl.org>
- Date
- Feb 13, 2006, 00:16 UTC
- Message-ID
- <Pine.LNX.4.64.0602121614340.3691@g5.osdl.org>
- In-Reply-To
- <Pine.LNX.4.63.0602130007320.9507@wbgn013.biozentrum.uni-wuerzburg.de>
On Mon, 13 Feb 2006, Johannes Schindelin wrote:
> > Make hashtable resizing more robust AKA do not resize in-place
You forgot to release the old array afterwards.
Anyway, I think the in-place version is fine now, even if it has a few subtleties. So this isn't needed, but keep it in mind if we find another bug, or if somebody wants to shrink the hash table less aggressively than with doubling it every time.
Linus