We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5bb1d3c commit a49a3e0Copy full SHA for a49a3e0
Zend/zend_hash.c
@@ -1167,7 +1167,7 @@ static void ZEND_FASTCALL zend_hash_do_resize(HashTable *ht)
1167
1168
if (ht->nNumUsed > ht->nNumOfElements + (ht->nNumOfElements >> 5)) { /* additional term is there to amortize the cost of compaction */
1169
zend_hash_rehash(ht);
1170
- } else if (ht->nTableSize < HT_MAX_SIZE) { /* Let's double the table size */
+ } else if (EXPECTED(ht->nTableSize < HT_MAX_SIZE)) { /* Let's double the table size */
1171
void *new_data, *old_data = HT_GET_DATA_ADDR(ht);
1172
uint32_t nSize = ht->nTableSize + ht->nTableSize;
1173
if (nSize < HT_MIN_SIZE_UNPACKED) {
0 commit comments