Home
last modified time | relevance | path

Searched refs:pHashTable (Results 1 – 2 of 2) sorted by relevance

/dalvik/vm/
DHash.cpp46 HashTable* pHashTable; in dvmHashTableCreate() local
50 pHashTable = (HashTable*) malloc(sizeof(*pHashTable)); in dvmHashTableCreate()
51 if (pHashTable == NULL) in dvmHashTableCreate()
54 dvmInitMutex(&pHashTable->lock); in dvmHashTableCreate()
56 pHashTable->tableSize = dexRoundUpPower2(initialSize); in dvmHashTableCreate()
57 pHashTable->numEntries = pHashTable->numDeadEntries = 0; in dvmHashTableCreate()
58 pHashTable->freeFunc = freeFunc; in dvmHashTableCreate()
59 pHashTable->pEntries = in dvmHashTableCreate()
60 (HashEntry*) calloc(pHashTable->tableSize, sizeof(HashEntry)); in dvmHashTableCreate()
61 if (pHashTable->pEntries == NULL) { in dvmHashTableCreate()
[all …]
DHash.h103 void dvmHashTableClear(HashTable* pHashTable);
108 void dvmHashTableFree(HashTable* pHashTable);
114 INLINE void dvmHashTableLock(HashTable* pHashTable) { in dvmHashTableLock() argument
115 dvmLockMutex(&pHashTable->lock); in dvmHashTableLock()
117 INLINE void dvmHashTableUnlock(HashTable* pHashTable) { in dvmHashTableUnlock() argument
118 dvmUnlockMutex(&pHashTable->lock); in dvmHashTableUnlock()
124 INLINE int dvmHashTableNumEntries(HashTable* pHashTable) { in dvmHashTableNumEntries() argument
125 return pHashTable->numEntries; in dvmHashTableNumEntries()
131 INLINE int dvmHashTableMemUsage(HashTable* pHashTable) { in dvmHashTableMemUsage() argument
132 return sizeof(HashTable) + pHashTable->tableSize * sizeof(HashEntry); in dvmHashTableMemUsage()
[all …]