X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=ghc%2Frts%2FHash.c;h=9b9e98a3dfb290c518f6a19c12f8b1ce80d699d0;hb=cb97b80de5d1596117e6c807741cda5a02e0b35d;hp=9acecbdb5329c403b2850ff77ac09fd4e0974dfb;hpb=14e414ecf358fa62c5cdc99a33f4597e8b3124d6;p=ghc-hetmet.git diff --git a/ghc/rts/Hash.c b/ghc/rts/Hash.c index 9acecbd..9b9e98a 100644 --- a/ghc/rts/Hash.c +++ b/ghc/rts/Hash.c @@ -1,5 +1,5 @@ /*----------------------------------------------------------------------------- - * $Id: Hash.c,v 1.4 2001/06/25 09:49:59 rrt Exp $ + * $Id: Hash.c,v 1.6 2001/08/14 13:40:09 sewardj Exp $ * * (c) The AQUA Project, Glasgow University, 1995-1998 * (c) The GHC Team, 1999 @@ -9,6 +9,7 @@ * pp. 446 -- 457. * -------------------------------------------------------------------------- */ +#include "PosixSource.h" #include "Rts.h" #include "Hash.h" #include "RtsUtils.h" @@ -243,8 +244,8 @@ insertHashTable(HashTable *table, StgWord key, void *data) HashList *hl; /* We want no duplicates */ - // ASSERT(lookupHashTable(table, key) == NULL); - + ASSERT(lookupHashTable(table, key) == NULL); + /* When the average load gets too high, we expand the table */ if (++table->kcount >= HLOAD * table->bcount) expand(table);