Bug 65908. Reduce nsHashtable default size from 256 to 16 (the minimum that a PL_HashTable will allow). r=kandrot, sr=brendan.

This commit is contained in:
waterson%netscape.com 2001-01-19 21:20:52 +00:00
Родитель ed221a6a31
Коммит 9fedcec1d1
1 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -82,7 +82,7 @@ protected:
PRBool mEnumerating;
public:
nsHashtable(PRUint32 aSize = 256, PRBool threadSafe = PR_FALSE);
nsHashtable(PRUint32 aSize = 16, PRBool threadSafe = PR_FALSE);
virtual ~nsHashtable();
PRInt32 Count(void) { return mHashtable.nentries; }
@ -108,7 +108,7 @@ public:
void* cloneElementClosure,
nsHashtableEnumFunc destroyElementFun,
void* destroyElementClosure,
PRUint32 aSize = 256, PRBool threadSafe = PR_FALSE);
PRUint32 aSize = 16, PRBool threadSafe = PR_FALSE);
~nsObjectHashtable();
nsHashtable *Clone();
@ -135,7 +135,7 @@ class NS_COM nsSupportsHashtable
public:
typedef PRBool (* PR_CALLBACK EnumFunc) (nsHashKey *aKey, void *aData, void* closure);
nsSupportsHashtable(PRUint32 aSize = 256, PRBool threadSafe = PR_FALSE)
nsSupportsHashtable(PRUint32 aSize = 16, PRBool threadSafe = PR_FALSE)
: nsHashtable(aSize, threadSafe) {}
~nsSupportsHashtable();