[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
funny behavior isn hash tables?
- To: firstname.lastname@example.org, email@example.com
- Subject: funny behavior isn hash tables?
- From: "Roland Zito-Wolf" <firstname.lastname@example.org>
- Date: Tue, 8 Sep 92 11:45:29 -0400
I just ran into a bit of odd behavior w/hash tables.
They'd never given me any trouble till I added a
function to collect some statistics about the contents of
the tables. It MAPHASHes over two tables and throws out
when it finds what it wants.
The peculiar behavior is: the data in one of the tables
gets destroyed by doing this, sometimes. I examined the
tables; the broken one had the right value (131) in its ENTRIES
variable but only 43 actual entries, all of then in
bucket 0. The undamaged table had entires in all bucckets
but 0 and one other. I shoudl add that this happened
while the program is GCing reasonably often (every few minutes).