Searched refs:nTableSize (Results 1 - 8 of 8) sorted by relevance

/PHP_TRUNK/Zend/
H A Dzend_string.c53 CG(interned_strings).nTableMask = CG(interned_strings).nTableSize - 1;
54 CG(interned_strings).arData = (Bucket*) pecalloc(CG(interned_strings).nTableSize, sizeof(Bucket), 1);
55 CG(interned_strings).arHash = (uint32_t*) pecalloc(CG(interned_strings).nTableSize, sizeof(uint32_t), 1);
56 memset(CG(interned_strings).arHash, INVALID_IDX, CG(interned_strings).nTableSize * sizeof(uint32_t));
108 if (CG(interned_strings).nNumUsed >= CG(interned_strings).nTableSize) {
109 if (CG(interned_strings).nTableSize < HT_MAX_SIZE) { /* Let's double the table size */
110 Bucket *d = (Bucket *) perealloc_recoverable(CG(interned_strings).arData, (CG(interned_strings).nTableSize << 1) * sizeof(Bucket), 1);
111 uint32_t *h = (uint32_t *) perealloc_recoverable(CG(interned_strings).arHash, (CG(interned_strings).nTableSize << 1) * sizeof(uint32_t), 1);
117 CG(interned_strings).nTableSize = (CG(interned_strings).nTableSize <<
[all...]
H A Dzend_types.h176 uint32_t nTableSize; member in struct:_zend_array
H A Dzend_hash.c86 if ((ht)->nNumUsed >= (ht)->nTableSize) { \
129 (ht)->arData = (Bucket *) pemalloc((ht)->nTableSize * sizeof(Bucket), (ht)->u.flags & HASH_FLAG_PERSISTENT);
132 (ht)->nTableMask = (ht)->nTableSize - 1;
133 (ht)->arData = (Bucket *) pemalloc((ht)->nTableSize * (sizeof(Bucket) + sizeof(uint32_t)), (ht)->u.flags & HASH_FLAG_PERSISTENT);
134 (ht)->arHash = (uint32_t*)((ht)->arData + (ht)->nTableSize);
135 memset((ht)->arHash, INVALID_IDX, (ht)->nTableSize * sizeof(uint32_t));
149 ht->nTableSize = zend_hash_check_size(nSize);
164 if (ht->nTableSize >= HT_MAX_SIZE) {
165 zend_error_noreturn(E_ERROR, "Possible integer overflow in memory allocation (%zu * %zu + %zu)", ht->nTableSize * 2, sizeof(Bucket), sizeof(Bucket));
168 ht->nTableSize
[all...]
/PHP_TRUNK/ext/standard/
H A Darray.c2092 in_hash->nTableSize = out_hash.nTableSize;
2372 Z_ARRVAL_P(stack)->nTableSize = new_hash.nTableSize;
/PHP_TRUNK/ext/opcache/
H A DZendAccelerator.c1842 if (!ZCG(function_table).nTableSize) {
2213 ZCSG(interned_strings).nTableMask = ZCSG(interned_strings).nTableSize - 1;
2214 ZCSG(interned_strings).arData = zend_shared_alloc(ZCSG(interned_strings).nTableSize * sizeof(Bucket));
2215 ZCSG(interned_strings).arHash = (uint32_t*)zend_shared_alloc(ZCSG(interned_strings).nTableSize * sizeof(uint32_t));
2221 memset(ZCSG(interned_strings).arHash, INVALID_IDX, ZCSG(interned_strings).nTableSize * sizeof(uint32_t));
2277 if (accel_globals->function_table.nTableSize) {
H A Dzend_accelerator_util_funcs.c286 ht->nTableSize = source->nTableSize;
304 ht->arData = (Bucket *) emalloc(ht->nTableSize * sizeof(Bucket));
329 ht->arData = (Bucket *) emalloc(ht->nTableSize * (sizeof(Bucket) + sizeof(uint32_t)));
330 ht->arHash = (uint32_t*)(ht->arData + ht->nTableSize);
331 memset(ht->arHash, INVALID_IDX, sizeof(uint32_t) * ht->nTableSize);
365 ht->nTableSize = source->nTableSize;
380 ht->arData = (Bucket *) emalloc(ht->nTableSize * (sizeof(Bucket) + sizeof(uint32_t)));
381 ht->arHash = (uint32_t *)(ht->arData + ht->nTableSize);
[all...]
H A Dzend_persist.c88 ZCG(mem) = (void*)(h + ht->nTableSize);
90 memcpy(h, ht->arHash, sizeof(uint32_t) * ht->nTableSize);
125 ZCG(mem) = (void*)(h + ht->nTableSize);
127 memcpy(h, ht->arHash, sizeof(uint32_t) * ht->nTableSize);
H A Dzend_persist_calc.c63 ADD_SIZE(sizeof(Bucket) * ht->nNumUsed + sizeof(uint32_t) * ht->nTableSize);

Completed in 27 milliseconds