X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;ds=sidebyside;f=ghc%2Frts%2FHash.c;h=ada11a6a859ef59f941719f3dfb3e28fee869547;hb=bbe90cbe14b94899efe0ce24e0c5fdbdb8d40ada;hp=d3e4cf47e985acf5c3f7bc352e4a8d791db18530;hpb=94e06463420582cc2d336b39a297e82af39e4cc4;p=ghc-hetmet.git diff --git a/ghc/rts/Hash.c b/ghc/rts/Hash.c index d3e4cf4..ada11a6 100644 --- a/ghc/rts/Hash.c +++ b/ghc/rts/Hash.c @@ -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)