Commit 9e9dfae0 authored by simonmar's avatar simonmar
Browse files

[project @ 2005-06-28 13:43:41 by simonmar]

Disable the assertion that checks for multiple entries with the same
key in the hash table.  It's useful to be able to do this sometimes.
parent a9ae952e
......@@ -245,8 +245,9 @@ insertHashTable(HashTable *table, StgWord key, void *data)
int index;
HashList *hl;
/* We want no duplicates */
ASSERT(lookupHashTable(table, key) == NULL);
// Disable this assert; sometimes it's useful to be able to
// overwrite entries in the hash table.
// ASSERT(lookupHashTable(table, key) == NULL);
/* When the average load gets too high, we expand the table */
if (++table->kcount >= HLOAD * table->bcount)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment