| line |
true |
false |
branch |
|
181
|
2733696 |
311 |
for (i = 0; i < capacity; i++) { |
|
|
983408 |
46 |
for (i = 0; i < capacity; i++) { |
|
|
2098096 |
52 |
for (i = 0; i < capacity; i++) { |
|
|
2722464 |
165 |
for (i = 0; i < capacity; i++) { |
|
|
2726512 |
230 |
for (i = 0; i < capacity; i++) { |
|
|
10861168 |
543 |
for (i = 0; i < capacity; i++) { |
|
|
4294464 |
141 |
for (i = 0; i < capacity; i++) { |
|
|
1607584 |
161 |
for (i = 0; i < capacity; i++) { |
|
|
2004688 |
135 |
for (i = 0; i < capacity; i++) { |
|
203
|
81579 |
0 |
if (node->key != NULL && node->key != HM_STR_TOMBSTONE) { |
|
|
81579 |
0 |
if (node->key != NULL && node->key != HM_STR_TOMBSTONE) { |
|
|
80229 |
0 |
if (node->key != NULL && node->key != HM_STR_TOMBSTONE) { |
|
|
80229 |
0 |
if (node->key != NULL && node->key != HM_STR_TOMBSTONE) { |
|
|
82485 |
0 |
if (node->key != NULL && node->key != HM_STR_TOMBSTONE) { |
|
|
82485 |
0 |
if (node->key != NULL && node->key != HM_STR_TOMBSTONE) { |
|
|
80283 |
0 |
if (node->key != NULL && node->key != HM_STR_TOMBSTONE) { |
|
|
80283 |
0 |
if (node->key != NULL && node->key != HM_STR_TOMBSTONE) { |
|
|
80127 |
0 |
if (node->key != NULL && node->key != HM_STR_TOMBSTONE) { |
|
|
80127 |
0 |
if (node->key != NULL && node->key != HM_STR_TOMBSTONE) { |
|
209
|
80414 |
3 |
if (node->value != NULL) { |
|
|
82480 |
5 |
if (node->value != NULL) { |
|
|
81022 |
11 |
if (node->value != NULL) { |
|
|
60313 |
1 |
if (node->value != NULL) { |
|
214
|
81577 |
2 |
if (node->value != NULL && map->free_value_fn) { |
|
|
81577 |
0 |
if (node->value != NULL && map->free_value_fn) { |
|
|
82021 |
4 |
if (node->value != NULL && map->free_value_fn) { |
|
|
82021 |
0 |
if (node->value != NULL && map->free_value_fn) { |
|
|
30065 |
1 |
if (node->value != NULL && map->free_value_fn) { |
|
|
30065 |
0 |
if (node->value != NULL && map->free_value_fn) { |
|
|
50125 |
1 |
if (node->value != NULL && map->free_value_fn) { |
|
|
50125 |
0 |
if (node->value != NULL && map->free_value_fn) { |
|
227
|
342 |
1 |
if (p != HM_LRU_NONE) map->lru_next[p] = n; |
|
|
186 |
0 |
if (p != HM_LRU_NONE) map->lru_next[p] = n; |
|
|
2 |
0 |
if (p != HM_LRU_NONE) map->lru_next[p] = n; |
|
|
2 |
0 |
if (p != HM_LRU_NONE) map->lru_next[p] = n; |
|
|
1 |
1 |
if (p != HM_LRU_NONE) map->lru_next[p] = n; |
|
|
181 |
0 |
if (p != HM_LRU_NONE) map->lru_next[p] = n; |
|
|
352 |
0 |
if (p != HM_LRU_NONE) map->lru_next[p] = n; |
|
|
3 |
1 |
if (p != HM_LRU_NONE) map->lru_next[p] = n; |
|
|
181 |
0 |
if (p != HM_LRU_NONE) map->lru_next[p] = n; |
|
|
2806 |
6 |
if (p != HM_LRU_NONE) map->lru_next[p] = n; |
|
|
1 |
0 |
if (p != HM_LRU_NONE) map->lru_next[p] = n; |
|
|
3 |
1 |
if (p != HM_LRU_NONE) map->lru_next[p] = n; |
|
|
181 |
0 |
if (p != HM_LRU_NONE) map->lru_next[p] = n; |
|
|
1 |
0 |
if (p != HM_LRU_NONE) map->lru_next[p] = n; |
|
229
|
0 |
343 |
if (n != HM_LRU_NONE) map->lru_prev[n] = p; |
|
|
1 |
185 |
if (n != HM_LRU_NONE) map->lru_prev[n] = p; |
|
|
0 |
2 |
if (n != HM_LRU_NONE) map->lru_prev[n] = p; |
|
|
0 |
2 |
if (n != HM_LRU_NONE) map->lru_prev[n] = p; |
|
|
0 |
2 |
if (n != HM_LRU_NONE) map->lru_prev[n] = p; |
|
|
0 |
181 |
if (n != HM_LRU_NONE) map->lru_prev[n] = p; |
|
|
0 |
352 |
if (n != HM_LRU_NONE) map->lru_prev[n] = p; |
|
|
1 |
3 |
if (n != HM_LRU_NONE) map->lru_prev[n] = p; |
|
|
0 |
181 |
if (n != HM_LRU_NONE) map->lru_prev[n] = p; |
|
|
18 |
2794 |
if (n != HM_LRU_NONE) map->lru_prev[n] = p; |
|
|
0 |
1 |
if (n != HM_LRU_NONE) map->lru_prev[n] = p; |
|
|
1 |
3 |
if (n != HM_LRU_NONE) map->lru_prev[n] = p; |
|
|
0 |
181 |
if (n != HM_LRU_NONE) map->lru_prev[n] = p; |
|
|
0 |
1 |
if (n != HM_LRU_NONE) map->lru_prev[n] = p; |
|
238
|
402 |
7 |
if (map->lru_head != HM_LRU_NONE) |
|
|
208 |
5 |
if (map->lru_head != HM_LRU_NONE) |
|
|
6 |
2 |
if (map->lru_head != HM_LRU_NONE) |
|
|
6 |
2 |
if (map->lru_head != HM_LRU_NONE) |
|
|
2 |
2 |
if (map->lru_head != HM_LRU_NONE) |
|
|
200 |
3 |
if (map->lru_head != HM_LRU_NONE) |
|
|
419 |
7 |
if (map->lru_head != HM_LRU_NONE) |
|
|
5 |
2 |
if (map->lru_head != HM_LRU_NONE) |
|
|
200 |
3 |
if (map->lru_head != HM_LRU_NONE) |
|
|
3251 |
35 |
if (map->lru_head != HM_LRU_NONE) |
|
|
3 |
1 |
if (map->lru_head != HM_LRU_NONE) |
|
|
5 |
2 |
if (map->lru_head != HM_LRU_NONE) |
|
|
200 |
3 |
if (map->lru_head != HM_LRU_NONE) |
|
|
3 |
1 |
if (map->lru_head != HM_LRU_NONE) |
|
246
|
2 |
0 |
if (map->lru_head == idx) return; |
|
|
2 |
2 |
if (map->lru_head == idx) return; |
|
|
2 |
0 |
if (map->lru_head == idx) return; |
|
|
2 |
0 |
if (map->lru_head == idx) return; |
|
|
0 |
0 |
if (map->lru_head == idx) return; |
|
|
0 |
0 |
if (map->lru_head == idx) return; |
|
|
2 |
0 |
if (map->lru_head == idx) return; |
|
|
0 |
2 |
if (map->lru_head == idx) return; |
|
|
1 |
0 |
if (map->lru_head == idx) return; |
|
|
7 |
119 |
if (map->lru_head == idx) return; |
|
|
0 |
0 |
if (map->lru_head == idx) return; |
|
|
0 |
2 |
if (map->lru_head == idx) return; |
|
|
0 |
0 |
if (map->lru_head == idx) return; |
|
|
0 |
0 |
if (map->lru_head == idx) return; |
|
247
|
0 |
0 |
if (map->lru_skip_every && idx != map->lru_tail) { |
|
|
0 |
0 |
if (map->lru_skip_every && idx != map->lru_tail) { |
|
|
0 |
2 |
if (map->lru_skip_every && idx != map->lru_tail) { |
|
|
0 |
0 |
if (map->lru_skip_every && idx != map->lru_tail) { |
|
|
0 |
0 |
if (map->lru_skip_every && idx != map->lru_tail) { |
|
|
0 |
0 |
if (map->lru_skip_every && idx != map->lru_tail) { |
|
|
0 |
0 |
if (map->lru_skip_every && idx != map->lru_tail) { |
|
|
0 |
0 |
if (map->lru_skip_every && idx != map->lru_tail) { |
|
|
0 |
0 |
if (map->lru_skip_every && idx != map->lru_tail) { |
|
|
0 |
0 |
if (map->lru_skip_every && idx != map->lru_tail) { |
|
|
0 |
0 |
if (map->lru_skip_every && idx != map->lru_tail) { |
|
|
0 |
0 |
if (map->lru_skip_every && idx != map->lru_tail) { |
|
|
0 |
0 |
if (map->lru_skip_every && idx != map->lru_tail) { |
|
|
0 |
0 |
if (map->lru_skip_every && idx != map->lru_tail) { |
|
|
0 |
2 |
if (map->lru_skip_every && idx != map->lru_tail) { |
|
|
0 |
0 |
if (map->lru_skip_every && idx != map->lru_tail) { |
|
|
0 |
0 |
if (map->lru_skip_every && idx != map->lru_tail) { |
|
|
0 |
0 |
if (map->lru_skip_every && idx != map->lru_tail) { |
|
|
2 |
117 |
if (map->lru_skip_every && idx != map->lru_tail) { |
|
|
1 |
1 |
if (map->lru_skip_every && idx != map->lru_tail) { |
|
|
0 |
0 |
if (map->lru_skip_every && idx != map->lru_tail) { |
|
|
0 |
0 |
if (map->lru_skip_every && idx != map->lru_tail) { |
|
|
0 |
2 |
if (map->lru_skip_every && idx != map->lru_tail) { |
|
|
0 |
0 |
if (map->lru_skip_every && idx != map->lru_tail) { |
|
|
0 |
0 |
if (map->lru_skip_every && idx != map->lru_tail) { |
|
|
0 |
0 |
if (map->lru_skip_every && idx != map->lru_tail) { |
|
|
0 |
0 |
if (map->lru_skip_every && idx != map->lru_tail) { |
|
|
0 |
0 |
if (map->lru_skip_every && idx != map->lru_tail) { |
|
248
|
0 |
0 |
if (++map->lru_skip_ctr < map->lru_skip_every) return; |
|
|
0 |
0 |
if (++map->lru_skip_ctr < map->lru_skip_every) return; |
|
|
0 |
0 |
if (++map->lru_skip_ctr < map->lru_skip_every) return; |
|
|
0 |
0 |
if (++map->lru_skip_ctr < map->lru_skip_every) return; |
|
|
0 |
0 |
if (++map->lru_skip_ctr < map->lru_skip_every) return; |
|
|
0 |
0 |
if (++map->lru_skip_ctr < map->lru_skip_every) return; |
|
|
0 |
0 |
if (++map->lru_skip_ctr < map->lru_skip_every) return; |
|
|
0 |
0 |
if (++map->lru_skip_ctr < map->lru_skip_every) return; |
|
|
0 |
0 |
if (++map->lru_skip_ctr < map->lru_skip_every) return; |
|
|
1 |
0 |
if (++map->lru_skip_ctr < map->lru_skip_every) return; |
|
|
0 |
0 |
if (++map->lru_skip_ctr < map->lru_skip_every) return; |
|
|
0 |
0 |
if (++map->lru_skip_ctr < map->lru_skip_every) return; |
|
|
0 |
0 |
if (++map->lru_skip_ctr < map->lru_skip_every) return; |
|
|
0 |
0 |
if (++map->lru_skip_ctr < map->lru_skip_every) return; |
|
268
|
163 |
80688 |
if (map->expires_at) map->expires_at[index] = 0; |
|
|
3 |
80691 |
if (map->expires_at) map->expires_at[index] = 0; |
|
|
2 |
30007 |
if (map->expires_at) map->expires_at[index] = 0; |
|
|
2 |
50007 |
if (map->expires_at) map->expires_at[index] = 0; |
|
|
1 |
80008 |
if (map->expires_at) map->expires_at[index] = 0; |
|
|
0 |
80187 |
if (map->expires_at) map->expires_at[index] = 0; |
|
|
167 |
80704 |
if (map->expires_at) map->expires_at[index] = 0; |
|
|
1 |
80008 |
if (map->expires_at) map->expires_at[index] = 0; |
|
|
1 |
80295 |
if (map->expires_at) map->expires_at[index] = 0; |
|
|
34 |
282718 |
if (map->expires_at) map->expires_at[index] = 0; |
|
|
1 |
150009 |
if (map->expires_at) map->expires_at[index] = 0; |
|
|
2 |
80007 |
if (map->expires_at) map->expires_at[index] = 0; |
|
|
0 |
60185 |
if (map->expires_at) map->expires_at[index] = 0; |
|
|
1 |
80010 |
if (map->expires_at) map->expires_at[index] = 0; |
|
276
|
0 |
342 |
if (victim == HM_LRU_NONE) return; |
|
|
0 |
183 |
if (victim == HM_LRU_NONE) return; |
|
|
0 |
2 |
if (victim == HM_LRU_NONE) return; |
|
|
0 |
2 |
if (victim == HM_LRU_NONE) return; |
|
|
0 |
1 |
if (victim == HM_LRU_NONE) return; |
|
|
0 |
181 |
if (victim == HM_LRU_NONE) return; |
|
|
0 |
351 |
if (victim == HM_LRU_NONE) return; |
|
|
0 |
1 |
if (victim == HM_LRU_NONE) return; |
|
|
0 |
181 |
if (victim == HM_LRU_NONE) return; |
|
|
0 |
2678 |
if (victim == HM_LRU_NONE) return; |
|
|
0 |
1 |
if (victim == HM_LRU_NONE) return; |
|
|
0 |
1 |
if (victim == HM_LRU_NONE) return; |
|
|
0 |
181 |
if (victim == HM_LRU_NONE) return; |
|
|
0 |
1 |
if (victim == HM_LRU_NONE) return; |
|
289
|
0 |
3 |
if (HM_UNLIKELY(map->lru_prev)) HM_FN(lru_unlink)(map, (uint32_t)index); |
|
|
0 |
3 |
if (HM_UNLIKELY(map->lru_prev)) HM_FN(lru_unlink)(map, (uint32_t)index); |
|
|
0 |
2 |
if (HM_UNLIKELY(map->lru_prev)) HM_FN(lru_unlink)(map, (uint32_t)index); |
|
|
0 |
2 |
if (HM_UNLIKELY(map->lru_prev)) HM_FN(lru_unlink)(map, (uint32_t)index); |
|
|
0 |
1 |
if (HM_UNLIKELY(map->lru_prev)) HM_FN(lru_unlink)(map, (uint32_t)index); |
|
|
0 |
0 |
if (HM_UNLIKELY(map->lru_prev)) HM_FN(lru_unlink)(map, (uint32_t)index); |
|
|
0 |
2 |
if (HM_UNLIKELY(map->lru_prev)) HM_FN(lru_unlink)(map, (uint32_t)index); |
|
|
0 |
1 |
if (HM_UNLIKELY(map->lru_prev)) HM_FN(lru_unlink)(map, (uint32_t)index); |
|
|
0 |
1 |
if (HM_UNLIKELY(map->lru_prev)) HM_FN(lru_unlink)(map, (uint32_t)index); |
|
|
4 |
16 |
if (HM_UNLIKELY(map->lru_prev)) HM_FN(lru_unlink)(map, (uint32_t)index); |
|
|
0 |
1 |
if (HM_UNLIKELY(map->lru_prev)) HM_FN(lru_unlink)(map, (uint32_t)index); |
|
|
0 |
2 |
if (HM_UNLIKELY(map->lru_prev)) HM_FN(lru_unlink)(map, (uint32_t)index); |
|
|
0 |
0 |
if (HM_UNLIKELY(map->lru_prev)) HM_FN(lru_unlink)(map, (uint32_t)index); |
|
|
0 |
1 |
if (HM_UNLIKELY(map->lru_prev)) HM_FN(lru_unlink)(map, (uint32_t)index); |
|
291
|
1 |
2 |
if (may_compact && |
|
|
1 |
2 |
if (may_compact && |
|
|
1 |
1 |
if (may_compact && |
|
|
1 |
1 |
if (may_compact && |
|
|
0 |
1 |
if (may_compact && |
|
|
0 |
0 |
if (may_compact && |
|
|
0 |
2 |
if (may_compact && |
|
|
0 |
1 |
if (may_compact && |
|
|
0 |
1 |
if (may_compact && |
|
|
7 |
13 |
if (may_compact && |
|
|
0 |
1 |
if (may_compact && |
|
|
0 |
2 |
if (may_compact && |
|
|
0 |
0 |
if (may_compact && |
|
|
0 |
1 |
if (may_compact && |
|
292
|
1 |
0 |
(map->tombstones > map->capacity / 4 || |
|
|
1 |
0 |
(map->tombstones > map->capacity / 4 || |
|
|
1 |
0 |
(map->tombstones > map->capacity / 4 || |
|
|
1 |
0 |
(map->tombstones > map->capacity / 4 || |
|
|
0 |
0 |
(map->tombstones > map->capacity / 4 || |
|
|
0 |
0 |
(map->tombstones > map->capacity / 4 || |
|
|
0 |
0 |
(map->tombstones > map->capacity / 4 || |
|
|
0 |
0 |
(map->tombstones > map->capacity / 4 || |
|
|
0 |
0 |
(map->tombstones > map->capacity / 4 || |
|
|
7 |
0 |
(map->tombstones > map->capacity / 4 || |
|
|
0 |
0 |
(map->tombstones > map->capacity / 4 || |
|
|
0 |
0 |
(map->tombstones > map->capacity / 4 || |
|
|
0 |
0 |
(map->tombstones > map->capacity / 4 || |
|
|
0 |
0 |
(map->tombstones > map->capacity / 4 || |
|
293
|
0 |
1 |
(map->size > 0 && map->tombstones > map->size))) { |
|
|
0 |
0 |
(map->size > 0 && map->tombstones > map->size))) { |
|
|
0 |
1 |
(map->size > 0 && map->tombstones > map->size))) { |
|
|
0 |
0 |
(map->size > 0 && map->tombstones > map->size))) { |
|
|
0 |
1 |
(map->size > 0 && map->tombstones > map->size))) { |
|
|
0 |
0 |
(map->size > 0 && map->tombstones > map->size))) { |
|
|
0 |
1 |
(map->size > 0 && map->tombstones > map->size))) { |
|
|
0 |
0 |
(map->size > 0 && map->tombstones > map->size))) { |
|
|
0 |
0 |
(map->size > 0 && map->tombstones > map->size))) { |
|
|
0 |
0 |
(map->size > 0 && map->tombstones > map->size))) { |
|
|
0 |
0 |
(map->size > 0 && map->tombstones > map->size))) { |
|
|
0 |
0 |
(map->size > 0 && map->tombstones > map->size))) { |
|
|
0 |
0 |
(map->size > 0 && map->tombstones > map->size))) { |
|
|
0 |
0 |
(map->size > 0 && map->tombstones > map->size))) { |
|
|
0 |
0 |
(map->size > 0 && map->tombstones > map->size))) { |
|
|
0 |
0 |
(map->size > 0 && map->tombstones > map->size))) { |
|
|
0 |
0 |
(map->size > 0 && map->tombstones > map->size))) { |
|
|
0 |
0 |
(map->size > 0 && map->tombstones > map->size))) { |
|
|
2 |
5 |
(map->size > 0 && map->tombstones > map->size))) { |
|
|
1 |
1 |
(map->size > 0 && map->tombstones > map->size))) { |
|
|
0 |
0 |
(map->size > 0 && map->tombstones > map->size))) { |
|
|
0 |
0 |
(map->size > 0 && map->tombstones > map->size))) { |
|
|
0 |
0 |
(map->size > 0 && map->tombstones > map->size))) { |
|
|
0 |
0 |
(map->size > 0 && map->tombstones > map->size))) { |
|
|
0 |
0 |
(map->size > 0 && map->tombstones > map->size))) { |
|
|
0 |
0 |
(map->size > 0 && map->tombstones > map->size))) { |
|
|
0 |
0 |
(map->size > 0 && map->tombstones > map->size))) { |
|
|
0 |
0 |
(map->size > 0 && map->tombstones > map->size))) { |
|
302
|
0 |
46 |
if (!map) return NULL; |
|
|
0 |
55 |
if (!map) return NULL; |
|
|
0 |
16 |
if (!map) return NULL; |
|
|
0 |
16 |
if (!map) return NULL; |
|
|
0 |
17 |
if (!map) return NULL; |
|
|
0 |
14 |
if (!map) return NULL; |
|
|
0 |
73 |
if (!map) return NULL; |
|
|
0 |
30 |
if (!map) return NULL; |
|
|
0 |
35 |
if (!map) return NULL; |
|
|
0 |
122 |
if (!map) return NULL; |
|
|
0 |
26 |
if (!map) return NULL; |
|
|
0 |
16 |
if (!map) return NULL; |
|
|
0 |
15 |
if (!map) return NULL; |
|
|
0 |
21 |
if (!map) return NULL; |
|
312
|
0 |
46 |
map->lru_skip_every = (map->lru_skip > 0) ? (uint32_t)(100 / (100 - map->lru_skip)) : 0; |
|
|
0 |
55 |
map->lru_skip_every = (map->lru_skip > 0) ? (uint32_t)(100 / (100 - map->lru_skip)) : 0; |
|
|
0 |
16 |
map->lru_skip_every = (map->lru_skip > 0) ? (uint32_t)(100 / (100 - map->lru_skip)) : 0; |
|
|
0 |
16 |
map->lru_skip_every = (map->lru_skip > 0) ? (uint32_t)(100 / (100 - map->lru_skip)) : 0; |
|
|
0 |
17 |
map->lru_skip_every = (map->lru_skip > 0) ? (uint32_t)(100 / (100 - map->lru_skip)) : 0; |
|
|
0 |
14 |
map->lru_skip_every = (map->lru_skip > 0) ? (uint32_t)(100 / (100 - map->lru_skip)) : 0; |
|
|
1 |
72 |
map->lru_skip_every = (map->lru_skip > 0) ? (uint32_t)(100 / (100 - map->lru_skip)) : 0; |
|
|
0 |
30 |
map->lru_skip_every = (map->lru_skip > 0) ? (uint32_t)(100 / (100 - map->lru_skip)) : 0; |
|
|
0 |
35 |
map->lru_skip_every = (map->lru_skip > 0) ? (uint32_t)(100 / (100 - map->lru_skip)) : 0; |
|
|
5 |
117 |
map->lru_skip_every = (map->lru_skip > 0) ? (uint32_t)(100 / (100 - map->lru_skip)) : 0; |
|
|
0 |
26 |
map->lru_skip_every = (map->lru_skip > 0) ? (uint32_t)(100 / (100 - map->lru_skip)) : 0; |
|
|
0 |
16 |
map->lru_skip_every = (map->lru_skip > 0) ? (uint32_t)(100 / (100 - map->lru_skip)) : 0; |
|
|
0 |
15 |
map->lru_skip_every = (map->lru_skip > 0) ? (uint32_t)(100 / (100 - map->lru_skip)) : 0; |
|
|
0 |
21 |
map->lru_skip_every = (map->lru_skip > 0) ? (uint32_t)(100 / (100 - map->lru_skip)) : 0; |
|
325
|
0 |
46 |
if (!map->nodes) { free(map); return NULL; } |
|
|
0 |
55 |
if (!map->nodes) { free(map); return NULL; } |
|
|
0 |
16 |
if (!map->nodes) { free(map); return NULL; } |
|
|
0 |
16 |
if (!map->nodes) { free(map); return NULL; } |
|
|
0 |
17 |
if (!map->nodes) { free(map); return NULL; } |
|
|
0 |
14 |
if (!map->nodes) { free(map); return NULL; } |
|
|
0 |
73 |
if (!map->nodes) { free(map); return NULL; } |
|
|
0 |
30 |
if (!map->nodes) { free(map); return NULL; } |
|
|
0 |
35 |
if (!map->nodes) { free(map); return NULL; } |
|
|
0 |
122 |
if (!map->nodes) { free(map); return NULL; } |
|
|
0 |
26 |
if (!map->nodes) { free(map); return NULL; } |
|
|
0 |
16 |
if (!map->nodes) { free(map); return NULL; } |
|
|
0 |
15 |
if (!map->nodes) { free(map); return NULL; } |
|
|
0 |
21 |
if (!map->nodes) { free(map); return NULL; } |
|
328
|
7 |
39 |
if (max_size > 0) { |
|
|
5 |
50 |
if (max_size > 0) { |
|
|
2 |
14 |
if (max_size > 0) { |
|
|
2 |
14 |
if (max_size > 0) { |
|
|
2 |
15 |
if (max_size > 0) { |
|
|
3 |
11 |
if (max_size > 0) { |
|
|
7 |
66 |
if (max_size > 0) { |
|
|
2 |
28 |
if (max_size > 0) { |
|
|
3 |
32 |
if (max_size > 0) { |
|
|
39 |
83 |
if (max_size > 0) { |
|
|
1 |
25 |
if (max_size > 0) { |
|
|
2 |
14 |
if (max_size > 0) { |
|
|
3 |
12 |
if (max_size > 0) { |
|
|
1 |
20 |
if (max_size > 0) { |
|
331
|
7 |
0 |
if (!map->lru_prev || !map->lru_next) { |
|
|
0 |
7 |
if (!map->lru_prev || !map->lru_next) { |
|
|
5 |
0 |
if (!map->lru_prev || !map->lru_next) { |
|
|
0 |
5 |
if (!map->lru_prev || !map->lru_next) { |
|
|
2 |
0 |
if (!map->lru_prev || !map->lru_next) { |
|
|
0 |
2 |
if (!map->lru_prev || !map->lru_next) { |
|
|
2 |
0 |
if (!map->lru_prev || !map->lru_next) { |
|
|
0 |
2 |
if (!map->lru_prev || !map->lru_next) { |
|
|
2 |
0 |
if (!map->lru_prev || !map->lru_next) { |
|
|
0 |
2 |
if (!map->lru_prev || !map->lru_next) { |
|
|
3 |
0 |
if (!map->lru_prev || !map->lru_next) { |
|
|
0 |
3 |
if (!map->lru_prev || !map->lru_next) { |
|
|
7 |
0 |
if (!map->lru_prev || !map->lru_next) { |
|
|
0 |
7 |
if (!map->lru_prev || !map->lru_next) { |
|
|
2 |
0 |
if (!map->lru_prev || !map->lru_next) { |
|
|
0 |
2 |
if (!map->lru_prev || !map->lru_next) { |
|
|
3 |
0 |
if (!map->lru_prev || !map->lru_next) { |
|
|
0 |
3 |
if (!map->lru_prev || !map->lru_next) { |
|
|
39 |
0 |
if (!map->lru_prev || !map->lru_next) { |
|
|
0 |
39 |
if (!map->lru_prev || !map->lru_next) { |
|
|
1 |
0 |
if (!map->lru_prev || !map->lru_next) { |
|
|
0 |
1 |
if (!map->lru_prev || !map->lru_next) { |
|
|
2 |
0 |
if (!map->lru_prev || !map->lru_next) { |
|
|
0 |
2 |
if (!map->lru_prev || !map->lru_next) { |
|
|
3 |
0 |
if (!map->lru_prev || !map->lru_next) { |
|
|
0 |
3 |
if (!map->lru_prev || !map->lru_next) { |
|
|
1 |
0 |
if (!map->lru_prev || !map->lru_next) { |
|
|
0 |
1 |
if (!map->lru_prev || !map->lru_next) { |
|
340
|
4 |
42 |
if (default_ttl > 0) { |
|
|
4 |
51 |
if (default_ttl > 0) { |
|
|
2 |
14 |
if (default_ttl > 0) { |
|
|
2 |
14 |
if (default_ttl > 0) { |
|
|
0 |
17 |
if (default_ttl > 0) { |
|
|
0 |
14 |
if (default_ttl > 0) { |
|
|
7 |
66 |
if (default_ttl > 0) { |
|
|
1 |
29 |
if (default_ttl > 0) { |
|
|
1 |
34 |
if (default_ttl > 0) { |
|
|
28 |
94 |
if (default_ttl > 0) { |
|
|
0 |
26 |
if (default_ttl > 0) { |
|
|
1 |
15 |
if (default_ttl > 0) { |
|
|
0 |
15 |
if (default_ttl > 0) { |
|
|
1 |
20 |
if (default_ttl > 0) { |
|
342
|
0 |
4 |
if (!map->expires_at) { |
|
|
0 |
4 |
if (!map->expires_at) { |
|
|
0 |
2 |
if (!map->expires_at) { |
|
|
0 |
2 |
if (!map->expires_at) { |
|
|
0 |
0 |
if (!map->expires_at) { |
|
|
0 |
0 |
if (!map->expires_at) { |
|
|
0 |
7 |
if (!map->expires_at) { |
|
|
0 |
1 |
if (!map->expires_at) { |
|
|
0 |
1 |
if (!map->expires_at) { |
|
|
0 |
28 |
if (!map->expires_at) { |
|
|
0 |
0 |
if (!map->expires_at) { |
|
|
0 |
1 |
if (!map->expires_at) { |
|
|
0 |
0 |
if (!map->expires_at) { |
|
|
0 |
1 |
if (!map->expires_at) { |
|
353
|
0 |
46 |
if (!map) return; |
|
|
0 |
56 |
if (!map) return; |
|
|
0 |
16 |
if (!map) return; |
|
|
0 |
16 |
if (!map) return; |
|
|
0 |
17 |
if (!map) return; |
|
|
0 |
14 |
if (!map) return; |
|
|
0 |
74 |
if (!map) return; |
|
|
0 |
30 |
if (!map) return; |
|
|
0 |
35 |
if (!map) return; |
|
|
0 |
126 |
if (!map) return; |
|
|
0 |
26 |
if (!map) return; |
|
|
0 |
16 |
if (!map) return; |
|
|
0 |
15 |
if (!map) return; |
|
|
0 |
21 |
if (!map) return; |
|
357
|
149792 |
46 |
for (i = 0; i < map->capacity; i++) { |
|
|
151392 |
56 |
for (i = 0; i < map->capacity; i++) { |
|
|
65808 |
16 |
for (i = 0; i < map->capacity; i++) { |
|
|
131536 |
16 |
for (i = 0; i < map->capacity; i++) { |
|
|
148176 |
17 |
for (i = 0; i < map->capacity; i++) { |
|
|
148128 |
14 |
for (i = 0; i < map->capacity; i++) { |
|
|
152192 |
74 |
for (i = 0; i < map->capacity; i++) { |
|
|
148416 |
30 |
for (i = 0; i < map->capacity; i++) { |
|
|
149808 |
35 |
for (i = 0; i < map->capacity; i++) { |
|
|
147904 |
16 |
for (i = 0; i < map->capacity; i++) { |
|
|
82352 |
15 |
for (i = 0; i < map->capacity; i++) { |
|
358
|
650 |
149142 |
if (HM_SLOT_IS_LIVE(&map->nodes[i])) { |
|
|
629 |
21 |
if (HM_SLOT_IS_LIVE(&map->nodes[i])) { |
|
|
1052 |
150340 |
if (HM_SLOT_IS_LIVE(&map->nodes[i])) { |
|
|
1032 |
20 |
if (HM_SLOT_IS_LIVE(&map->nodes[i])) { |
|
|
26 |
65782 |
if (HM_SLOT_IS_LIVE(&map->nodes[i])) { |
|
|
18 |
8 |
if (HM_SLOT_IS_LIVE(&map->nodes[i])) { |
|
|
26 |
131510 |
if (HM_SLOT_IS_LIVE(&map->nodes[i])) { |
|
|
18 |
8 |
if (HM_SLOT_IS_LIVE(&map->nodes[i])) { |
|
|
29 |
148147 |
if (HM_SLOT_IS_LIVE(&map->nodes[i])) { |
|
|
22 |
7 |
if (HM_SLOT_IS_LIVE(&map->nodes[i])) { |
|
|
40 |
148088 |
if (HM_SLOT_IS_LIVE(&map->nodes[i])) { |
|
|
31 |
9 |
if (HM_SLOT_IS_LIVE(&map->nodes[i])) { |
|
|
1143 |
151049 |
if (HM_SLOT_IS_LIVE(&map->nodes[i])) { |
|
|
1117 |
26 |
if (HM_SLOT_IS_LIVE(&map->nodes[i])) { |
|
|
83 |
148333 |
if (HM_SLOT_IS_LIVE(&map->nodes[i])) { |
|
|
76 |
7 |
if (HM_SLOT_IS_LIVE(&map->nodes[i])) { |
|
|
556 |
149252 |
if (HM_SLOT_IS_LIVE(&map->nodes[i])) { |
|
|
539 |
17 |
if (HM_SLOT_IS_LIVE(&map->nodes[i])) { |
|
|
28 |
147876 |
if (HM_SLOT_IS_LIVE(&map->nodes[i])) { |
|
|
20 |
8 |
if (HM_SLOT_IS_LIVE(&map->nodes[i])) { |
|
|
40 |
82312 |
if (HM_SLOT_IS_LIVE(&map->nodes[i])) { |
|
|
30 |
10 |
if (HM_SLOT_IS_LIVE(&map->nodes[i])) { |
|
374
|
0 |
3 |
if (!map) return; |
|
|
0 |
7 |
if (!map) return; |
|
|
0 |
3 |
if (!map) return; |
|
|
0 |
3 |
if (!map) return; |
|
|
0 |
2 |
if (!map) return; |
|
|
0 |
3 |
if (!map) return; |
|
|
0 |
9 |
if (!map) return; |
|
|
0 |
2 |
if (!map) return; |
|
|
0 |
2 |
if (!map) return; |
|
|
0 |
8 |
if (!map) return; |
|
|
0 |
3 |
if (!map) return; |
|
|
0 |
2 |
if (!map) return; |
|
|
0 |
3 |
if (!map) return; |
|
|
0 |
3 |
if (!map) return; |
|
378
|
272 |
3 |
for (i = 0; i < map->capacity; i++) { |
|
|
784 |
7 |
for (i = 0; i < map->capacity; i++) { |
|
|
80 |
3 |
for (i = 0; i < map->capacity; i++) { |
|
|
272 |
3 |
for (i = 0; i < map->capacity; i++) { |
|
|
512 |
2 |
for (i = 0; i < map->capacity; i++) { |
|
|
528 |
3 |
for (i = 0; i < map->capacity; i++) { |
|
|
1296 |
9 |
for (i = 0; i < map->capacity; i++) { |
|
|
512 |
2 |
for (i = 0; i < map->capacity; i++) { |
|
|
512 |
2 |
for (i = 0; i < map->capacity; i++) { |
|
|
256 |
2 |
for (i = 0; i < map->capacity; i++) { |
|
|
272 |
3 |
for (i = 0; i < map->capacity; i++) { |
|
379
|
101 |
171 |
if (HM_SLOT_IS_LIVE(&map->nodes[i])) |
|
|
99 |
2 |
if (HM_SLOT_IS_LIVE(&map->nodes[i])) |
|
|
301 |
483 |
if (HM_SLOT_IS_LIVE(&map->nodes[i])) |
|
|
299 |
2 |
if (HM_SLOT_IS_LIVE(&map->nodes[i])) |
|
|
41 |
39 |
if (HM_SLOT_IS_LIVE(&map->nodes[i])) |
|
|
39 |
2 |
if (HM_SLOT_IS_LIVE(&map->nodes[i])) |
|
|
101 |
171 |
if (HM_SLOT_IS_LIVE(&map->nodes[i])) |
|
|
99 |
2 |
if (HM_SLOT_IS_LIVE(&map->nodes[i])) |
|
|
200 |
312 |
if (HM_SLOT_IS_LIVE(&map->nodes[i])) |
|
|
198 |
2 |
if (HM_SLOT_IS_LIVE(&map->nodes[i])) |
|
|
201 |
327 |
if (HM_SLOT_IS_LIVE(&map->nodes[i])) |
|
|
199 |
2 |
if (HM_SLOT_IS_LIVE(&map->nodes[i])) |
|
|
501 |
795 |
if (HM_SLOT_IS_LIVE(&map->nodes[i])) |
|
|
497 |
4 |
if (HM_SLOT_IS_LIVE(&map->nodes[i])) |
|
|
200 |
312 |
if (HM_SLOT_IS_LIVE(&map->nodes[i])) |
|
|
198 |
2 |
if (HM_SLOT_IS_LIVE(&map->nodes[i])) |
|
|
200 |
312 |
if (HM_SLOT_IS_LIVE(&map->nodes[i])) |
|
|
198 |
2 |
if (HM_SLOT_IS_LIVE(&map->nodes[i])) |
|
|
100 |
156 |
if (HM_SLOT_IS_LIVE(&map->nodes[i])) |
|
|
98 |
2 |
if (HM_SLOT_IS_LIVE(&map->nodes[i])) |
|
|
101 |
171 |
if (HM_SLOT_IS_LIVE(&map->nodes[i])) |
|
|
99 |
2 |
if (HM_SLOT_IS_LIVE(&map->nodes[i])) |
|
388
|
0 |
3 |
if (map->lru_prev) { |
|
|
0 |
7 |
if (map->lru_prev) { |
|
|
0 |
3 |
if (map->lru_prev) { |
|
|
0 |
3 |
if (map->lru_prev) { |
|
|
0 |
2 |
if (map->lru_prev) { |
|
|
0 |
3 |
if (map->lru_prev) { |
|
|
0 |
9 |
if (map->lru_prev) { |
|
|
0 |
2 |
if (map->lru_prev) { |
|
|
0 |
2 |
if (map->lru_prev) { |
|
|
1 |
7 |
if (map->lru_prev) { |
|
|
0 |
3 |
if (map->lru_prev) { |
|
|
0 |
2 |
if (map->lru_prev) { |
|
|
0 |
3 |
if (map->lru_prev) { |
|
|
0 |
3 |
if (map->lru_prev) { |
|
394
|
0 |
3 |
if (map->expires_at) |
|
|
4 |
3 |
if (map->expires_at) |
|
|
0 |
3 |
if (map->expires_at) |
|
|
0 |
3 |
if (map->expires_at) |
|
|
0 |
2 |
if (map->expires_at) |
|
|
0 |
3 |
if (map->expires_at) |
|
|
4 |
5 |
if (map->expires_at) |
|
|
0 |
2 |
if (map->expires_at) |
|
|
0 |
2 |
if (map->expires_at) |
|
|
3 |
5 |
if (map->expires_at) |
|
|
0 |
3 |
if (map->expires_at) |
|
|
0 |
2 |
if (map->expires_at) |
|
|
0 |
3 |
if (map->expires_at) |
|
|
0 |
3 |
if (map->expires_at) |
|
401
|
0 |
0 |
if (!map || !map->expires_at) return; |
|
|
0 |
0 |
if (!map || !map->expires_at) return; |
|
|
0 |
0 |
if (!map || !map->expires_at) return; |
|
|
0 |
0 |
if (!map || !map->expires_at) return; |
|
|
0 |
0 |
if (!map || !map->expires_at) return; |
|
|
0 |
0 |
if (!map || !map->expires_at) return; |
|
|
0 |
0 |
if (!map || !map->expires_at) return; |
|
|
0 |
0 |
if (!map || !map->expires_at) return; |
|
|
0 |
0 |
if (!map || !map->expires_at) return; |
|
|
0 |
0 |
if (!map || !map->expires_at) return; |
|
|
0 |
0 |
if (!map || !map->expires_at) return; |
|
|
0 |
0 |
if (!map || !map->expires_at) return; |
|
|
1 |
0 |
if (!map || !map->expires_at) return; |
|
|
0 |
1 |
if (!map || !map->expires_at) return; |
|
|
0 |
0 |
if (!map || !map->expires_at) return; |
|
|
0 |
0 |
if (!map || !map->expires_at) return; |
|
|
0 |
0 |
if (!map || !map->expires_at) return; |
|
|
0 |
0 |
if (!map || !map->expires_at) return; |
|
|
1 |
0 |
if (!map || !map->expires_at) return; |
|
|
0 |
1 |
if (!map || !map->expires_at) return; |
|
|
0 |
0 |
if (!map || !map->expires_at) return; |
|
|
0 |
0 |
if (!map || !map->expires_at) return; |
|
|
0 |
0 |
if (!map || !map->expires_at) return; |
|
|
0 |
0 |
if (!map || !map->expires_at) return; |
|
|
0 |
0 |
if (!map || !map->expires_at) return; |
|
|
0 |
0 |
if (!map || !map->expires_at) return; |
|
|
0 |
0 |
if (!map || !map->expires_at) return; |
|
|
0 |
0 |
if (!map || !map->expires_at) return; |
|
404
|
0 |
0 |
for (i = 0; i < map->capacity; i++) { |
|
|
0 |
0 |
for (i = 0; i < map->capacity; i++) { |
|
|
0 |
0 |
for (i = 0; i < map->capacity; i++) { |
|
|
0 |
0 |
for (i = 0; i < map->capacity; i++) { |
|
|
0 |
0 |
for (i = 0; i < map->capacity; i++) { |
|
|
0 |
0 |
for (i = 0; i < map->capacity; i++) { |
|
|
16 |
1 |
for (i = 0; i < map->capacity; i++) { |
|
|
0 |
0 |
for (i = 0; i < map->capacity; i++) { |
|
|
0 |
0 |
for (i = 0; i < map->capacity; i++) { |
|
|
16 |
1 |
for (i = 0; i < map->capacity; i++) { |
|
|
0 |
0 |
for (i = 0; i < map->capacity; i++) { |
|
|
0 |
0 |
for (i = 0; i < map->capacity; i++) { |
|
|
0 |
0 |
for (i = 0; i < map->capacity; i++) { |
|
|
0 |
0 |
for (i = 0; i < map->capacity; i++) { |
|
405
|
0 |
0 |
if (HM_SLOT_IS_LIVE(&map->nodes[i]) && |
|
|
0 |
0 |
if (HM_SLOT_IS_LIVE(&map->nodes[i]) && |
|
|
0 |
0 |
if (HM_SLOT_IS_LIVE(&map->nodes[i]) && |
|
|
0 |
0 |
if (HM_SLOT_IS_LIVE(&map->nodes[i]) && |
|
|
0 |
0 |
if (HM_SLOT_IS_LIVE(&map->nodes[i]) && |
|
|
0 |
0 |
if (HM_SLOT_IS_LIVE(&map->nodes[i]) && |
|
|
0 |
0 |
if (HM_SLOT_IS_LIVE(&map->nodes[i]) && |
|
|
0 |
0 |
if (HM_SLOT_IS_LIVE(&map->nodes[i]) && |
|
|
0 |
0 |
if (HM_SLOT_IS_LIVE(&map->nodes[i]) && |
|
|
0 |
0 |
if (HM_SLOT_IS_LIVE(&map->nodes[i]) && |
|
|
0 |
0 |
if (HM_SLOT_IS_LIVE(&map->nodes[i]) && |
|
|
0 |
0 |
if (HM_SLOT_IS_LIVE(&map->nodes[i]) && |
|
|
5 |
11 |
if (HM_SLOT_IS_LIVE(&map->nodes[i]) && |
|
|
5 |
0 |
if (HM_SLOT_IS_LIVE(&map->nodes[i]) && |
|
|
0 |
0 |
if (HM_SLOT_IS_LIVE(&map->nodes[i]) && |
|
|
0 |
0 |
if (HM_SLOT_IS_LIVE(&map->nodes[i]) && |
|
|
0 |
0 |
if (HM_SLOT_IS_LIVE(&map->nodes[i]) && |
|
|
0 |
0 |
if (HM_SLOT_IS_LIVE(&map->nodes[i]) && |
|
|
11 |
5 |
if (HM_SLOT_IS_LIVE(&map->nodes[i]) && |
|
|
11 |
0 |
if (HM_SLOT_IS_LIVE(&map->nodes[i]) && |
|
|
0 |
0 |
if (HM_SLOT_IS_LIVE(&map->nodes[i]) && |
|
|
0 |
0 |
if (HM_SLOT_IS_LIVE(&map->nodes[i]) && |
|
|
0 |
0 |
if (HM_SLOT_IS_LIVE(&map->nodes[i]) && |
|
|
0 |
0 |
if (HM_SLOT_IS_LIVE(&map->nodes[i]) && |
|
|
0 |
0 |
if (HM_SLOT_IS_LIVE(&map->nodes[i]) && |
|
|
0 |
0 |
if (HM_SLOT_IS_LIVE(&map->nodes[i]) && |
|
|
0 |
0 |
if (HM_SLOT_IS_LIVE(&map->nodes[i]) && |
|
|
0 |
0 |
if (HM_SLOT_IS_LIVE(&map->nodes[i]) && |
|
406
|
0 |
0 |
map->expires_at[i] && now >= map->expires_at[i]) { |
|
|
0 |
0 |
map->expires_at[i] && now >= map->expires_at[i]) { |
|
|
0 |
0 |
map->expires_at[i] && now >= map->expires_at[i]) { |
|
|
0 |
0 |
map->expires_at[i] && now >= map->expires_at[i]) { |
|
|
0 |
0 |
map->expires_at[i] && now >= map->expires_at[i]) { |
|
|
0 |
0 |
map->expires_at[i] && now >= map->expires_at[i]) { |
|
|
0 |
0 |
map->expires_at[i] && now >= map->expires_at[i]) { |
|
|
0 |
0 |
map->expires_at[i] && now >= map->expires_at[i]) { |
|
|
0 |
0 |
map->expires_at[i] && now >= map->expires_at[i]) { |
|
|
0 |
0 |
map->expires_at[i] && now >= map->expires_at[i]) { |
|
|
0 |
0 |
map->expires_at[i] && now >= map->expires_at[i]) { |
|
|
0 |
0 |
map->expires_at[i] && now >= map->expires_at[i]) { |
|
|
5 |
0 |
map->expires_at[i] && now >= map->expires_at[i]) { |
|
|
5 |
0 |
map->expires_at[i] && now >= map->expires_at[i]) { |
|
|
0 |
0 |
map->expires_at[i] && now >= map->expires_at[i]) { |
|
|
0 |
0 |
map->expires_at[i] && now >= map->expires_at[i]) { |
|
|
0 |
0 |
map->expires_at[i] && now >= map->expires_at[i]) { |
|
|
0 |
0 |
map->expires_at[i] && now >= map->expires_at[i]) { |
|
|
11 |
0 |
map->expires_at[i] && now >= map->expires_at[i]) { |
|
|
10 |
1 |
map->expires_at[i] && now >= map->expires_at[i]) { |
|
|
0 |
0 |
map->expires_at[i] && now >= map->expires_at[i]) { |
|
|
0 |
0 |
map->expires_at[i] && now >= map->expires_at[i]) { |
|
|
0 |
0 |
map->expires_at[i] && now >= map->expires_at[i]) { |
|
|
0 |
0 |
map->expires_at[i] && now >= map->expires_at[i]) { |
|
|
0 |
0 |
map->expires_at[i] && now >= map->expires_at[i]) { |
|
|
0 |
0 |
map->expires_at[i] && now >= map->expires_at[i]) { |
|
|
0 |
0 |
map->expires_at[i] && now >= map->expires_at[i]) { |
|
|
0 |
0 |
map->expires_at[i] && now >= map->expires_at[i]) { |
|
407
|
0 |
0 |
if (HM_UNLIKELY(map->lru_prev)) |
|
|
0 |
0 |
if (HM_UNLIKELY(map->lru_prev)) |
|
|
0 |
0 |
if (HM_UNLIKELY(map->lru_prev)) |
|
|
0 |
0 |
if (HM_UNLIKELY(map->lru_prev)) |
|
|
0 |
0 |
if (HM_UNLIKELY(map->lru_prev)) |
|
|
0 |
0 |
if (HM_UNLIKELY(map->lru_prev)) |
|
|
0 |
5 |
if (HM_UNLIKELY(map->lru_prev)) |
|
|
0 |
0 |
if (HM_UNLIKELY(map->lru_prev)) |
|
|
0 |
0 |
if (HM_UNLIKELY(map->lru_prev)) |
|
|
0 |
10 |
if (HM_UNLIKELY(map->lru_prev)) |
|
|
0 |
0 |
if (HM_UNLIKELY(map->lru_prev)) |
|
|
0 |
0 |
if (HM_UNLIKELY(map->lru_prev)) |
|
|
0 |
0 |
if (HM_UNLIKELY(map->lru_prev)) |
|
|
0 |
0 |
if (HM_UNLIKELY(map->lru_prev)) |
|
412
|
0 |
0 |
if (map->tombstones > 0) HM_FN(compact)(map); |
|
|
0 |
0 |
if (map->tombstones > 0) HM_FN(compact)(map); |
|
|
0 |
0 |
if (map->tombstones > 0) HM_FN(compact)(map); |
|
|
0 |
0 |
if (map->tombstones > 0) HM_FN(compact)(map); |
|
|
0 |
0 |
if (map->tombstones > 0) HM_FN(compact)(map); |
|
|
0 |
0 |
if (map->tombstones > 0) HM_FN(compact)(map); |
|
|
1 |
0 |
if (map->tombstones > 0) HM_FN(compact)(map); |
|
|
0 |
0 |
if (map->tombstones > 0) HM_FN(compact)(map); |
|
|
0 |
0 |
if (map->tombstones > 0) HM_FN(compact)(map); |
|
|
1 |
0 |
if (map->tombstones > 0) HM_FN(compact)(map); |
|
|
0 |
0 |
if (map->tombstones > 0) HM_FN(compact)(map); |
|
|
0 |
0 |
if (map->tombstones > 0) HM_FN(compact)(map); |
|
|
0 |
0 |
if (map->tombstones > 0) HM_FN(compact)(map); |
|
|
0 |
0 |
if (map->tombstones > 0) HM_FN(compact)(map); |
|
418
|
0 |
0 |
if (!map) return NULL; |
|
|
0 |
1 |
if (!map) return NULL; |
|
|
0 |
0 |
if (!map) return NULL; |
|
|
0 |
0 |
if (!map) return NULL; |
|
|
0 |
0 |
if (!map) return NULL; |
|
|
0 |
0 |
if (!map) return NULL; |
|
|
0 |
1 |
if (!map) return NULL; |
|
|
0 |
0 |
if (!map) return NULL; |
|
|
0 |
0 |
if (!map) return NULL; |
|
|
0 |
4 |
if (!map) return NULL; |
|
|
0 |
0 |
if (!map) return NULL; |
|
|
0 |
0 |
if (!map) return NULL; |
|
|
0 |
0 |
if (!map) return NULL; |
|
|
0 |
0 |
if (!map) return NULL; |
|
421
|
0 |
0 |
if (!c) return NULL; |
|
|
0 |
1 |
if (!c) return NULL; |
|
|
0 |
0 |
if (!c) return NULL; |
|
|
0 |
0 |
if (!c) return NULL; |
|
|
0 |
0 |
if (!c) return NULL; |
|
|
0 |
0 |
if (!c) return NULL; |
|
|
0 |
1 |
if (!c) return NULL; |
|
|
0 |
0 |
if (!c) return NULL; |
|
|
0 |
0 |
if (!c) return NULL; |
|
|
0 |
4 |
if (!c) return NULL; |
|
|
0 |
0 |
if (!c) return NULL; |
|
|
0 |
0 |
if (!c) return NULL; |
|
|
0 |
0 |
if (!c) return NULL; |
|
|
0 |
0 |
if (!c) return NULL; |
|
429
|
0 |
0 |
if (!c->nodes) { free(c); return NULL; } |
|
|
0 |
1 |
if (!c->nodes) { free(c); return NULL; } |
|
|
0 |
0 |
if (!c->nodes) { free(c); return NULL; } |
|
|
0 |
0 |
if (!c->nodes) { free(c); return NULL; } |
|
|
0 |
0 |
if (!c->nodes) { free(c); return NULL; } |
|
|
0 |
0 |
if (!c->nodes) { free(c); return NULL; } |
|
|
0 |
1 |
if (!c->nodes) { free(c); return NULL; } |
|
|
0 |
0 |
if (!c->nodes) { free(c); return NULL; } |
|
|
0 |
0 |
if (!c->nodes) { free(c); return NULL; } |
|
|
0 |
4 |
if (!c->nodes) { free(c); return NULL; } |
|
|
0 |
0 |
if (!c->nodes) { free(c); return NULL; } |
|
|
0 |
0 |
if (!c->nodes) { free(c); return NULL; } |
|
|
0 |
0 |
if (!c->nodes) { free(c); return NULL; } |
|
|
0 |
0 |
if (!c->nodes) { free(c); return NULL; } |
|
442
|
0 |
0 |
for (i = 0; i < map->capacity; i++) { |
|
|
16 |
1 |
for (i = 0; i < map->capacity; i++) { |
|
|
0 |
0 |
for (i = 0; i < map->capacity; i++) { |
|
|
0 |
0 |
for (i = 0; i < map->capacity; i++) { |
|
|
0 |
0 |
for (i = 0; i < map->capacity; i++) { |
|
|
0 |
0 |
for (i = 0; i < map->capacity; i++) { |
|
|
16 |
1 |
for (i = 0; i < map->capacity; i++) { |
|
|
0 |
0 |
for (i = 0; i < map->capacity; i++) { |
|
|
0 |
0 |
for (i = 0; i < map->capacity; i++) { |
|
|
416 |
4 |
for (i = 0; i < map->capacity; i++) { |
|
|
0 |
0 |
for (i = 0; i < map->capacity; i++) { |
|
|
0 |
0 |
for (i = 0; i < map->capacity; i++) { |
|
|
0 |
0 |
for (i = 0; i < map->capacity; i++) { |
|
|
0 |
0 |
for (i = 0; i < map->capacity; i++) { |
|
443
|
0 |
0 |
if (!HM_SLOT_IS_LIVE(&map->nodes[i])) continue; |
|
|
0 |
0 |
if (!HM_SLOT_IS_LIVE(&map->nodes[i])) continue; |
|
|
1 |
15 |
if (!HM_SLOT_IS_LIVE(&map->nodes[i])) continue; |
|
|
0 |
1 |
if (!HM_SLOT_IS_LIVE(&map->nodes[i])) continue; |
|
|
0 |
0 |
if (!HM_SLOT_IS_LIVE(&map->nodes[i])) continue; |
|
|
0 |
0 |
if (!HM_SLOT_IS_LIVE(&map->nodes[i])) continue; |
|
|
0 |
0 |
if (!HM_SLOT_IS_LIVE(&map->nodes[i])) continue; |
|
|
0 |
0 |
if (!HM_SLOT_IS_LIVE(&map->nodes[i])) continue; |
|
|
0 |
0 |
if (!HM_SLOT_IS_LIVE(&map->nodes[i])) continue; |
|
|
0 |
0 |
if (!HM_SLOT_IS_LIVE(&map->nodes[i])) continue; |
|
|
0 |
0 |
if (!HM_SLOT_IS_LIVE(&map->nodes[i])) continue; |
|
|
0 |
0 |
if (!HM_SLOT_IS_LIVE(&map->nodes[i])) continue; |
|
|
10 |
6 |
if (!HM_SLOT_IS_LIVE(&map->nodes[i])) continue; |
|
|
0 |
10 |
if (!HM_SLOT_IS_LIVE(&map->nodes[i])) continue; |
|
|
0 |
0 |
if (!HM_SLOT_IS_LIVE(&map->nodes[i])) continue; |
|
|
0 |
0 |
if (!HM_SLOT_IS_LIVE(&map->nodes[i])) continue; |
|
|
0 |
0 |
if (!HM_SLOT_IS_LIVE(&map->nodes[i])) continue; |
|
|
0 |
0 |
if (!HM_SLOT_IS_LIVE(&map->nodes[i])) continue; |
|
|
156 |
260 |
if (!HM_SLOT_IS_LIVE(&map->nodes[i])) continue; |
|
|
0 |
156 |
if (!HM_SLOT_IS_LIVE(&map->nodes[i])) continue; |
|
|
0 |
0 |
if (!HM_SLOT_IS_LIVE(&map->nodes[i])) continue; |
|
|
0 |
0 |
if (!HM_SLOT_IS_LIVE(&map->nodes[i])) continue; |
|
|
0 |
0 |
if (!HM_SLOT_IS_LIVE(&map->nodes[i])) continue; |
|
|
0 |
0 |
if (!HM_SLOT_IS_LIVE(&map->nodes[i])) continue; |
|
|
0 |
0 |
if (!HM_SLOT_IS_LIVE(&map->nodes[i])) continue; |
|
|
0 |
0 |
if (!HM_SLOT_IS_LIVE(&map->nodes[i])) continue; |
|
|
0 |
0 |
if (!HM_SLOT_IS_LIVE(&map->nodes[i])) continue; |
|
|
0 |
0 |
if (!HM_SLOT_IS_LIVE(&map->nodes[i])) continue; |
|
450
|
0 |
0 |
if (!c->nodes[i].key) goto fail; |
|
|
0 |
0 |
if (!c->nodes[i].key) goto fail; |
|
|
0 |
10 |
if (!c->nodes[i].key) goto fail; |
|
|
0 |
0 |
if (!c->nodes[i].key) goto fail; |
|
|
0 |
0 |
if (!c->nodes[i].key) goto fail; |
|
457
|
0 |
0 |
if (map->nodes[i].value) { |
|
|
10 |
0 |
if (map->nodes[i].value) { |
|
|
0 |
0 |
if (map->nodes[i].value) { |
|
|
0 |
0 |
if (map->nodes[i].value) { |
|
460
|
0 |
0 |
if (!c->nodes[i].value) goto fail; |
|
|
0 |
10 |
if (!c->nodes[i].value) goto fail; |
|
|
0 |
0 |
if (!c->nodes[i].value) goto fail; |
|
|
0 |
0 |
if (!c->nodes[i].value) goto fail; |
|
475
|
0 |
0 |
if (map->lru_prev) { |
|
|
0 |
1 |
if (map->lru_prev) { |
|
|
0 |
0 |
if (map->lru_prev) { |
|
|
0 |
0 |
if (map->lru_prev) { |
|
|
0 |
0 |
if (map->lru_prev) { |
|
|
0 |
0 |
if (map->lru_prev) { |
|
|
0 |
1 |
if (map->lru_prev) { |
|
|
0 |
0 |
if (map->lru_prev) { |
|
|
0 |
0 |
if (map->lru_prev) { |
|
|
2 |
2 |
if (map->lru_prev) { |
|
|
0 |
0 |
if (map->lru_prev) { |
|
|
0 |
0 |
if (map->lru_prev) { |
|
|
0 |
0 |
if (map->lru_prev) { |
|
|
0 |
0 |
if (map->lru_prev) { |
|
478
|
0 |
0 |
if (!c->lru_prev || !c->lru_next) goto fail; |
|
|
0 |
0 |
if (!c->lru_prev || !c->lru_next) goto fail; |
|
|
0 |
0 |
if (!c->lru_prev || !c->lru_next) goto fail; |
|
|
0 |
0 |
if (!c->lru_prev || !c->lru_next) goto fail; |
|
|
0 |
0 |
if (!c->lru_prev || !c->lru_next) goto fail; |
|
|
0 |
0 |
if (!c->lru_prev || !c->lru_next) goto fail; |
|
|
0 |
0 |
if (!c->lru_prev || !c->lru_next) goto fail; |
|
|
0 |
0 |
if (!c->lru_prev || !c->lru_next) goto fail; |
|
|
0 |
0 |
if (!c->lru_prev || !c->lru_next) goto fail; |
|
|
0 |
0 |
if (!c->lru_prev || !c->lru_next) goto fail; |
|
|
0 |
0 |
if (!c->lru_prev || !c->lru_next) goto fail; |
|
|
0 |
0 |
if (!c->lru_prev || !c->lru_next) goto fail; |
|
|
0 |
0 |
if (!c->lru_prev || !c->lru_next) goto fail; |
|
|
0 |
0 |
if (!c->lru_prev || !c->lru_next) goto fail; |
|
|
0 |
0 |
if (!c->lru_prev || !c->lru_next) goto fail; |
|
|
0 |
0 |
if (!c->lru_prev || !c->lru_next) goto fail; |
|
|
0 |
0 |
if (!c->lru_prev || !c->lru_next) goto fail; |
|
|
0 |
0 |
if (!c->lru_prev || !c->lru_next) goto fail; |
|
|
2 |
0 |
if (!c->lru_prev || !c->lru_next) goto fail; |
|
|
0 |
2 |
if (!c->lru_prev || !c->lru_next) goto fail; |
|
|
0 |
0 |
if (!c->lru_prev || !c->lru_next) goto fail; |
|
|
0 |
0 |
if (!c->lru_prev || !c->lru_next) goto fail; |
|
|
0 |
0 |
if (!c->lru_prev || !c->lru_next) goto fail; |
|
|
0 |
0 |
if (!c->lru_prev || !c->lru_next) goto fail; |
|
|
0 |
0 |
if (!c->lru_prev || !c->lru_next) goto fail; |
|
|
0 |
0 |
if (!c->lru_prev || !c->lru_next) goto fail; |
|
|
0 |
0 |
if (!c->lru_prev || !c->lru_next) goto fail; |
|
|
0 |
0 |
if (!c->lru_prev || !c->lru_next) goto fail; |
|
484
|
0 |
0 |
if (map->expires_at) { |
|
|
0 |
1 |
if (map->expires_at) { |
|
|
0 |
0 |
if (map->expires_at) { |
|
|
0 |
0 |
if (map->expires_at) { |
|
|
0 |
0 |
if (map->expires_at) { |
|
|
0 |
0 |
if (map->expires_at) { |
|
|
0 |
1 |
if (map->expires_at) { |
|
|
0 |
0 |
if (map->expires_at) { |
|
|
0 |
0 |
if (map->expires_at) { |
|
|
1 |
3 |
if (map->expires_at) { |
|
|
0 |
0 |
if (map->expires_at) { |
|
|
0 |
0 |
if (map->expires_at) { |
|
|
0 |
0 |
if (map->expires_at) { |
|
|
0 |
0 |
if (map->expires_at) { |
|
486
|
0 |
0 |
if (!c->expires_at) goto fail; |
|
|
0 |
0 |
if (!c->expires_at) goto fail; |
|
|
0 |
0 |
if (!c->expires_at) goto fail; |
|
|
0 |
0 |
if (!c->expires_at) goto fail; |
|
|
0 |
0 |
if (!c->expires_at) goto fail; |
|
|
0 |
0 |
if (!c->expires_at) goto fail; |
|
|
0 |
0 |
if (!c->expires_at) goto fail; |
|
|
0 |
0 |
if (!c->expires_at) goto fail; |
|
|
0 |
0 |
if (!c->expires_at) goto fail; |
|
|
0 |
1 |
if (!c->expires_at) goto fail; |
|
|
0 |
0 |
if (!c->expires_at) goto fail; |
|
|
0 |
0 |
if (!c->expires_at) goto fail; |
|
|
0 |
0 |
if (!c->expires_at) goto fail; |
|
|
0 |
0 |
if (!c->expires_at) goto fail; |
|
509
|
0 |
261 |
if (!new_nodes) return false; |
|
|
0 |
248 |
if (!new_nodes) return false; |
|
|
0 |
27 |
if (!new_nodes) return false; |
|
|
0 |
33 |
if (!new_nodes) return false; |
|
|
0 |
82 |
if (!new_nodes) return false; |
|
|
0 |
148 |
if (!new_nodes) return false; |
|
|
0 |
297 |
if (!new_nodes) return false; |
|
|
0 |
83 |
if (!new_nodes) return false; |
|
|
0 |
193 |
if (!new_nodes) return false; |
|
|
0 |
409 |
if (!new_nodes) return false; |
|
|
0 |
112 |
if (!new_nodes) return false; |
|
|
0 |
79 |
if (!new_nodes) return false; |
|
|
0 |
143 |
if (!new_nodes) return false; |
|
|
0 |
111 |
if (!new_nodes) return false; |
|
515
|
104 |
157 |
if (map->lru_prev) { |
|
|
66 |
182 |
if (map->lru_prev) { |
|
|
0 |
27 |
if (map->lru_prev) { |
|
|
0 |
33 |
if (map->lru_prev) { |
|
|
0 |
82 |
if (map->lru_prev) { |
|
|
66 |
82 |
if (map->lru_prev) { |
|
|
107 |
190 |
if (map->lru_prev) { |
|
|
0 |
83 |
if (map->lru_prev) { |
|
|
66 |
127 |
if (map->lru_prev) { |
|
|
229 |
180 |
if (map->lru_prev) { |
|
|
0 |
112 |
if (map->lru_prev) { |
|
|
0 |
79 |
if (map->lru_prev) { |
|
|
66 |
77 |
if (map->lru_prev) { |
|
|
0 |
111 |
if (map->lru_prev) { |
|
516
|
0 |
104 |
if (new_capacity > (size_t)(uint32_t)-2) { |
|
|
0 |
66 |
if (new_capacity > (size_t)(uint32_t)-2) { |
|
|
0 |
0 |
if (new_capacity > (size_t)(uint32_t)-2) { |
|
|
0 |
0 |
if (new_capacity > (size_t)(uint32_t)-2) { |
|
|
0 |
0 |
if (new_capacity > (size_t)(uint32_t)-2) { |
|
|
0 |
66 |
if (new_capacity > (size_t)(uint32_t)-2) { |
|
|
0 |
107 |
if (new_capacity > (size_t)(uint32_t)-2) { |
|
|
0 |
0 |
if (new_capacity > (size_t)(uint32_t)-2) { |
|
|
0 |
66 |
if (new_capacity > (size_t)(uint32_t)-2) { |
|
|
0 |
229 |
if (new_capacity > (size_t)(uint32_t)-2) { |
|
|
0 |
0 |
if (new_capacity > (size_t)(uint32_t)-2) { |
|
|
0 |
0 |
if (new_capacity > (size_t)(uint32_t)-2) { |
|
|
0 |
66 |
if (new_capacity > (size_t)(uint32_t)-2) { |
|
|
0 |
0 |
if (new_capacity > (size_t)(uint32_t)-2) { |
|
523
|
104 |
0 |
if (!new_lru_prev || !new_lru_next || !old_to_new) { |
|
|
104 |
0 |
if (!new_lru_prev || !new_lru_next || !old_to_new) { |
|
|
0 |
104 |
if (!new_lru_prev || !new_lru_next || !old_to_new) { |
|
|
66 |
0 |
if (!new_lru_prev || !new_lru_next || !old_to_new) { |
|
|
66 |
0 |
if (!new_lru_prev || !new_lru_next || !old_to_new) { |
|
|
0 |
66 |
if (!new_lru_prev || !new_lru_next || !old_to_new) { |
|
|
0 |
0 |
if (!new_lru_prev || !new_lru_next || !old_to_new) { |
|
|
0 |
0 |
if (!new_lru_prev || !new_lru_next || !old_to_new) { |
|
|
0 |
0 |
if (!new_lru_prev || !new_lru_next || !old_to_new) { |
|
|
0 |
0 |
if (!new_lru_prev || !new_lru_next || !old_to_new) { |
|
|
0 |
0 |
if (!new_lru_prev || !new_lru_next || !old_to_new) { |
|
|
0 |
0 |
if (!new_lru_prev || !new_lru_next || !old_to_new) { |
|
|
0 |
0 |
if (!new_lru_prev || !new_lru_next || !old_to_new) { |
|
|
0 |
0 |
if (!new_lru_prev || !new_lru_next || !old_to_new) { |
|
|
0 |
0 |
if (!new_lru_prev || !new_lru_next || !old_to_new) { |
|
|
66 |
0 |
if (!new_lru_prev || !new_lru_next || !old_to_new) { |
|
|
66 |
0 |
if (!new_lru_prev || !new_lru_next || !old_to_new) { |
|
|
0 |
66 |
if (!new_lru_prev || !new_lru_next || !old_to_new) { |
|
|
107 |
0 |
if (!new_lru_prev || !new_lru_next || !old_to_new) { |
|
|
107 |
0 |
if (!new_lru_prev || !new_lru_next || !old_to_new) { |
|
|
0 |
107 |
if (!new_lru_prev || !new_lru_next || !old_to_new) { |
|
|
0 |
0 |
if (!new_lru_prev || !new_lru_next || !old_to_new) { |
|
|
0 |
0 |
if (!new_lru_prev || !new_lru_next || !old_to_new) { |
|
|
0 |
0 |
if (!new_lru_prev || !new_lru_next || !old_to_new) { |
|
|
66 |
0 |
if (!new_lru_prev || !new_lru_next || !old_to_new) { |
|
|
66 |
0 |
if (!new_lru_prev || !new_lru_next || !old_to_new) { |
|
|
0 |
66 |
if (!new_lru_prev || !new_lru_next || !old_to_new) { |
|
|
229 |
0 |
if (!new_lru_prev || !new_lru_next || !old_to_new) { |
|
|
229 |
0 |
if (!new_lru_prev || !new_lru_next || !old_to_new) { |
|
|
0 |
229 |
if (!new_lru_prev || !new_lru_next || !old_to_new) { |
|
|
0 |
0 |
if (!new_lru_prev || !new_lru_next || !old_to_new) { |
|
|
0 |
0 |
if (!new_lru_prev || !new_lru_next || !old_to_new) { |
|
|
0 |
0 |
if (!new_lru_prev || !new_lru_next || !old_to_new) { |
|
|
0 |
0 |
if (!new_lru_prev || !new_lru_next || !old_to_new) { |
|
|
0 |
0 |
if (!new_lru_prev || !new_lru_next || !old_to_new) { |
|
|
0 |
0 |
if (!new_lru_prev || !new_lru_next || !old_to_new) { |
|
|
66 |
0 |
if (!new_lru_prev || !new_lru_next || !old_to_new) { |
|
|
66 |
0 |
if (!new_lru_prev || !new_lru_next || !old_to_new) { |
|
|
0 |
66 |
if (!new_lru_prev || !new_lru_next || !old_to_new) { |
|
|
0 |
0 |
if (!new_lru_prev || !new_lru_next || !old_to_new) { |
|
|
0 |
0 |
if (!new_lru_prev || !new_lru_next || !old_to_new) { |
|
|
0 |
0 |
if (!new_lru_prev || !new_lru_next || !old_to_new) { |
|
534
|
34 |
227 |
if (map->expires_at) { |
|
|
12 |
236 |
if (map->expires_at) { |
|
|
0 |
27 |
if (map->expires_at) { |
|
|
0 |
33 |
if (map->expires_at) { |
|
|
0 |
82 |
if (map->expires_at) { |
|
|
0 |
148 |
if (map->expires_at) { |
|
|
47 |
250 |
if (map->expires_at) { |
|
|
0 |
83 |
if (map->expires_at) { |
|
|
0 |
193 |
if (map->expires_at) { |
|
|
10 |
399 |
if (map->expires_at) { |
|
|
0 |
112 |
if (map->expires_at) { |
|
|
0 |
79 |
if (map->expires_at) { |
|
|
0 |
143 |
if (map->expires_at) { |
|
|
0 |
111 |
if (map->expires_at) { |
|
536
|
0 |
34 |
if (!new_expires_at) { |
|
|
0 |
12 |
if (!new_expires_at) { |
|
|
0 |
0 |
if (!new_expires_at) { |
|
|
0 |
0 |
if (!new_expires_at) { |
|
|
0 |
0 |
if (!new_expires_at) { |
|
|
0 |
0 |
if (!new_expires_at) { |
|
|
0 |
47 |
if (!new_expires_at) { |
|
|
0 |
0 |
if (!new_expires_at) { |
|
|
0 |
0 |
if (!new_expires_at) { |
|
|
0 |
10 |
if (!new_expires_at) { |
|
|
0 |
0 |
if (!new_expires_at) { |
|
|
0 |
0 |
if (!new_expires_at) { |
|
|
0 |
0 |
if (!new_expires_at) { |
|
|
0 |
0 |
if (!new_expires_at) { |
|
547
|
2581152 |
261 |
for (i = 0; i < old_capacity; i++) { |
|
|
2581520 |
248 |
for (i = 0; i < old_capacity; i++) { |
|
|
917520 |
27 |
for (i = 0; i < old_capacity; i++) { |
|
|
1966288 |
33 |
for (i = 0; i < old_capacity; i++) { |
|
|
2572752 |
82 |
for (i = 0; i < old_capacity; i++) { |
|
|
2573808 |
148 |
for (i = 0; i < old_capacity; i++) { |
|
|
2583168 |
297 |
for (i = 0; i < old_capacity; i++) { |
|
|
2572768 |
83 |
for (i = 0; i < old_capacity; i++) { |
|
|
2576192 |
193 |
for (i = 0; i < old_capacity; i++) { |
|
|
10183744 |
409 |
for (i = 0; i < old_capacity; i++) { |
|
|
4129232 |
112 |
for (i = 0; i < old_capacity; i++) { |
|
|
2572480 |
79 |
for (i = 0; i < old_capacity; i++) { |
|
|
1524960 |
143 |
for (i = 0; i < old_capacity; i++) { |
|
|
1919424 |
111 |
for (i = 0; i < old_capacity; i++) { |
|
548
|
279644 |
2301508 |
if (HM_SLOT_IS_LIVE(&old_nodes[i])) { |
|
|
198901 |
80743 |
if (HM_SLOT_IS_LIVE(&old_nodes[i])) { |
|
|
279911 |
2301609 |
if (HM_SLOT_IS_LIVE(&old_nodes[i])) { |
|
|
199302 |
80609 |
if (HM_SLOT_IS_LIVE(&old_nodes[i])) { |
|
|
109141 |
808379 |
if (HM_SLOT_IS_LIVE(&old_nodes[i])) { |
|
|
79143 |
29998 |
if (HM_SLOT_IS_LIVE(&old_nodes[i])) { |
|
|
198437 |
1767851 |
if (HM_SLOT_IS_LIVE(&old_nodes[i])) { |
|
|
148439 |
49998 |
if (HM_SLOT_IS_LIVE(&old_nodes[i])) { |
|
|
276275 |
2296477 |
if (HM_SLOT_IS_LIVE(&old_nodes[i])) { |
|
|
196278 |
79997 |
if (HM_SLOT_IS_LIVE(&old_nodes[i])) { |
|
|
277067 |
2296741 |
if (HM_SLOT_IS_LIVE(&old_nodes[i])) { |
|
|
196938 |
80129 |
if (HM_SLOT_IS_LIVE(&old_nodes[i])) { |
|
|
281149 |
2302019 |
if (HM_SLOT_IS_LIVE(&old_nodes[i])) { |
|
|
200395 |
80754 |
if (HM_SLOT_IS_LIVE(&old_nodes[i])) { |
|
|
276284 |
2296484 |
if (HM_SLOT_IS_LIVE(&old_nodes[i])) { |
|
|
196289 |
79995 |
if (HM_SLOT_IS_LIVE(&old_nodes[i])) { |
|
|
278267 |
2297925 |
if (HM_SLOT_IS_LIVE(&old_nodes[i])) { |
|
|
198036 |
80231 |
if (HM_SLOT_IS_LIVE(&old_nodes[i])) { |
|
|
879325 |
9304419 |
if (HM_SLOT_IS_LIVE(&old_nodes[i])) { |
|
|
597500 |
281825 |
if (HM_SLOT_IS_LIVE(&old_nodes[i])) { |
|
|
441178 |
3688054 |
if (HM_SLOT_IS_LIVE(&old_nodes[i])) { |
|
|
291182 |
149996 |
if (HM_SLOT_IS_LIVE(&old_nodes[i])) { |
|
|
276080 |
2296400 |
if (HM_SLOT_IS_LIVE(&old_nodes[i])) { |
|
|
196085 |
79995 |
if (HM_SLOT_IS_LIVE(&old_nodes[i])) { |
|
|
187720 |
1337240 |
if (HM_SLOT_IS_LIVE(&old_nodes[i])) { |
|
|
127593 |
60127 |
if (HM_SLOT_IS_LIVE(&old_nodes[i])) { |
|
|
232225 |
1687199 |
if (HM_SLOT_IS_LIVE(&old_nodes[i])) { |
|
|
152230 |
79995 |
if (HM_SLOT_IS_LIVE(&old_nodes[i])) { |
|
551
|
44525 |
199302 |
while (new_nodes[index].key != HM_EMPTY_KEY) |
|
|
17686 |
79143 |
while (new_nodes[index].key != HM_EMPTY_KEY) |
|
|
33161 |
148439 |
while (new_nodes[index].key != HM_EMPTY_KEY) |
|
|
43841 |
196938 |
while (new_nodes[index].key != HM_EMPTY_KEY) |
|
|
44217 |
198036 |
while (new_nodes[index].key != HM_EMPTY_KEY) |
|
|
119016 |
597500 |
while (new_nodes[index].key != HM_EMPTY_KEY) |
|
|
61423 |
291182 |
while (new_nodes[index].key != HM_EMPTY_KEY) |
|
|
28388 |
127593 |
while (new_nodes[index].key != HM_EMPTY_KEY) |
|
|
32931 |
152230 |
while (new_nodes[index].key != HM_EMPTY_KEY) |
|
555
|
44972 |
198901 |
while (new_nodes[index].key != NULL) |
|
|
44460 |
196278 |
while (new_nodes[index].key != NULL) |
|
|
45295 |
200395 |
while (new_nodes[index].key != NULL) |
|
|
44461 |
196289 |
while (new_nodes[index].key != NULL) |
|
|
44420 |
196085 |
while (new_nodes[index].key != NULL) |
|
559
|
1364 |
197537 |
if (old_to_new) old_to_new[i] = (uint32_t)index; |
|
|
660 |
198642 |
if (old_to_new) old_to_new[i] = (uint32_t)index; |
|
|
0 |
79143 |
if (old_to_new) old_to_new[i] = (uint32_t)index; |
|
|
0 |
148439 |
if (old_to_new) old_to_new[i] = (uint32_t)index; |
|
|
0 |
196278 |
if (old_to_new) old_to_new[i] = (uint32_t)index; |
|
|
660 |
196278 |
if (old_to_new) old_to_new[i] = (uint32_t)index; |
|
|
1394 |
199001 |
if (old_to_new) old_to_new[i] = (uint32_t)index; |
|
|
0 |
196289 |
if (old_to_new) old_to_new[i] = (uint32_t)index; |
|
|
660 |
197376 |
if (old_to_new) old_to_new[i] = (uint32_t)index; |
|
|
4041 |
593459 |
if (old_to_new) old_to_new[i] = (uint32_t)index; |
|
|
0 |
291182 |
if (old_to_new) old_to_new[i] = (uint32_t)index; |
|
|
0 |
196085 |
if (old_to_new) old_to_new[i] = (uint32_t)index; |
|
|
660 |
126933 |
if (old_to_new) old_to_new[i] = (uint32_t)index; |
|
|
0 |
152230 |
if (old_to_new) old_to_new[i] = (uint32_t)index; |
|
560
|
664 |
198237 |
if (new_expires_at) |
|
|
336 |
198966 |
if (new_expires_at) |
|
|
0 |
79143 |
if (new_expires_at) |
|
|
0 |
148439 |
if (new_expires_at) |
|
|
0 |
196278 |
if (new_expires_at) |
|
|
0 |
196938 |
if (new_expires_at) |
|
|
1000 |
199395 |
if (new_expires_at) |
|
|
0 |
196289 |
if (new_expires_at) |
|
|
0 |
198036 |
if (new_expires_at) |
|
|
206 |
597294 |
if (new_expires_at) |
|
|
0 |
291182 |
if (new_expires_at) |
|
|
0 |
196085 |
if (new_expires_at) |
|
|
0 |
127593 |
if (new_expires_at) |
|
|
0 |
152230 |
if (new_expires_at) |
|
567
|
104 |
157 |
if (map->lru_prev && map->lru_head != HM_LRU_NONE) { |
|
|
104 |
0 |
if (map->lru_prev && map->lru_head != HM_LRU_NONE) { |
|
|
66 |
182 |
if (map->lru_prev && map->lru_head != HM_LRU_NONE) { |
|
|
66 |
0 |
if (map->lru_prev && map->lru_head != HM_LRU_NONE) { |
|
|
0 |
27 |
if (map->lru_prev && map->lru_head != HM_LRU_NONE) { |
|
|
0 |
0 |
if (map->lru_prev && map->lru_head != HM_LRU_NONE) { |
|
|
0 |
33 |
if (map->lru_prev && map->lru_head != HM_LRU_NONE) { |
|
|
0 |
0 |
if (map->lru_prev && map->lru_head != HM_LRU_NONE) { |
|
|
0 |
82 |
if (map->lru_prev && map->lru_head != HM_LRU_NONE) { |
|
|
0 |
0 |
if (map->lru_prev && map->lru_head != HM_LRU_NONE) { |
|
|
66 |
82 |
if (map->lru_prev && map->lru_head != HM_LRU_NONE) { |
|
|
66 |
0 |
if (map->lru_prev && map->lru_head != HM_LRU_NONE) { |
|
|
107 |
190 |
if (map->lru_prev && map->lru_head != HM_LRU_NONE) { |
|
|
107 |
0 |
if (map->lru_prev && map->lru_head != HM_LRU_NONE) { |
|
|
0 |
83 |
if (map->lru_prev && map->lru_head != HM_LRU_NONE) { |
|
|
0 |
0 |
if (map->lru_prev && map->lru_head != HM_LRU_NONE) { |
|
|
66 |
127 |
if (map->lru_prev && map->lru_head != HM_LRU_NONE) { |
|
|
66 |
0 |
if (map->lru_prev && map->lru_head != HM_LRU_NONE) { |
|
|
229 |
180 |
if (map->lru_prev && map->lru_head != HM_LRU_NONE) { |
|
|
228 |
1 |
if (map->lru_prev && map->lru_head != HM_LRU_NONE) { |
|
|
0 |
112 |
if (map->lru_prev && map->lru_head != HM_LRU_NONE) { |
|
|
0 |
0 |
if (map->lru_prev && map->lru_head != HM_LRU_NONE) { |
|
|
0 |
79 |
if (map->lru_prev && map->lru_head != HM_LRU_NONE) { |
|
|
0 |
0 |
if (map->lru_prev && map->lru_head != HM_LRU_NONE) { |
|
|
66 |
77 |
if (map->lru_prev && map->lru_head != HM_LRU_NONE) { |
|
|
66 |
0 |
if (map->lru_prev && map->lru_head != HM_LRU_NONE) { |
|
|
0 |
111 |
if (map->lru_prev && map->lru_head != HM_LRU_NONE) { |
|
|
0 |
0 |
if (map->lru_prev && map->lru_head != HM_LRU_NONE) { |
|
573
|
1364 |
104 |
while (old_idx != HM_LRU_NONE) { |
|
|
660 |
66 |
while (old_idx != HM_LRU_NONE) { |
|
|
0 |
0 |
while (old_idx != HM_LRU_NONE) { |
|
|
0 |
0 |
while (old_idx != HM_LRU_NONE) { |
|
|
0 |
0 |
while (old_idx != HM_LRU_NONE) { |
|
|
660 |
66 |
while (old_idx != HM_LRU_NONE) { |
|
|
1394 |
107 |
while (old_idx != HM_LRU_NONE) { |
|
|
0 |
0 |
while (old_idx != HM_LRU_NONE) { |
|
|
660 |
66 |
while (old_idx != HM_LRU_NONE) { |
|
|
4041 |
228 |
while (old_idx != HM_LRU_NONE) { |
|
|
0 |
0 |
while (old_idx != HM_LRU_NONE) { |
|
|
0 |
0 |
while (old_idx != HM_LRU_NONE) { |
|
|
660 |
66 |
while (old_idx != HM_LRU_NONE) { |
|
|
0 |
0 |
while (old_idx != HM_LRU_NONE) { |
|
576
|
1364 |
0 |
if (ni != HM_LRU_NONE) { |
|
|
660 |
0 |
if (ni != HM_LRU_NONE) { |
|
|
0 |
0 |
if (ni != HM_LRU_NONE) { |
|
|
0 |
0 |
if (ni != HM_LRU_NONE) { |
|
|
0 |
0 |
if (ni != HM_LRU_NONE) { |
|
|
660 |
0 |
if (ni != HM_LRU_NONE) { |
|
|
1394 |
0 |
if (ni != HM_LRU_NONE) { |
|
|
0 |
0 |
if (ni != HM_LRU_NONE) { |
|
|
660 |
0 |
if (ni != HM_LRU_NONE) { |
|
|
4041 |
0 |
if (ni != HM_LRU_NONE) { |
|
|
0 |
0 |
if (ni != HM_LRU_NONE) { |
|
|
0 |
0 |
if (ni != HM_LRU_NONE) { |
|
|
660 |
0 |
if (ni != HM_LRU_NONE) { |
|
|
0 |
0 |
if (ni != HM_LRU_NONE) { |
|
579
|
1260 |
104 |
if (prev_new != HM_LRU_NONE) new_lru_next[prev_new] = ni; |
|
|
594 |
66 |
if (prev_new != HM_LRU_NONE) new_lru_next[prev_new] = ni; |
|
|
0 |
0 |
if (prev_new != HM_LRU_NONE) new_lru_next[prev_new] = ni; |
|
|
0 |
0 |
if (prev_new != HM_LRU_NONE) new_lru_next[prev_new] = ni; |
|
|
0 |
0 |
if (prev_new != HM_LRU_NONE) new_lru_next[prev_new] = ni; |
|
|
594 |
66 |
if (prev_new != HM_LRU_NONE) new_lru_next[prev_new] = ni; |
|
|
1287 |
107 |
if (prev_new != HM_LRU_NONE) new_lru_next[prev_new] = ni; |
|
|
0 |
0 |
if (prev_new != HM_LRU_NONE) new_lru_next[prev_new] = ni; |
|
|
594 |
66 |
if (prev_new != HM_LRU_NONE) new_lru_next[prev_new] = ni; |
|
|
3813 |
228 |
if (prev_new != HM_LRU_NONE) new_lru_next[prev_new] = ni; |
|
|
0 |
0 |
if (prev_new != HM_LRU_NONE) new_lru_next[prev_new] = ni; |
|
|
0 |
0 |
if (prev_new != HM_LRU_NONE) new_lru_next[prev_new] = ni; |
|
|
594 |
66 |
if (prev_new != HM_LRU_NONE) new_lru_next[prev_new] = ni; |
|
|
0 |
0 |
if (prev_new != HM_LRU_NONE) new_lru_next[prev_new] = ni; |
|
592
|
0 |
157 |
} else if (map->lru_prev) { |
|
|
0 |
182 |
} else if (map->lru_prev) { |
|
|
0 |
27 |
} else if (map->lru_prev) { |
|
|
0 |
33 |
} else if (map->lru_prev) { |
|
|
0 |
82 |
} else if (map->lru_prev) { |
|
|
0 |
82 |
} else if (map->lru_prev) { |
|
|
0 |
190 |
} else if (map->lru_prev) { |
|
|
0 |
83 |
} else if (map->lru_prev) { |
|
|
0 |
127 |
} else if (map->lru_prev) { |
|
|
1 |
180 |
} else if (map->lru_prev) { |
|
|
0 |
112 |
} else if (map->lru_prev) { |
|
|
0 |
79 |
} else if (map->lru_prev) { |
|
|
0 |
77 |
} else if (map->lru_prev) { |
|
|
0 |
111 |
} else if (map->lru_prev) { |
|
599
|
34 |
227 |
if (map->expires_at) { |
|
|
12 |
236 |
if (map->expires_at) { |
|
|
0 |
27 |
if (map->expires_at) { |
|
|
0 |
33 |
if (map->expires_at) { |
|
|
0 |
82 |
if (map->expires_at) { |
|
|
0 |
148 |
if (map->expires_at) { |
|
|
47 |
250 |
if (map->expires_at) { |
|
|
0 |
83 |
if (map->expires_at) { |
|
|
0 |
193 |
if (map->expires_at) { |
|
|
10 |
399 |
if (map->expires_at) { |
|
|
0 |
112 |
if (map->expires_at) { |
|
|
0 |
79 |
if (map->expires_at) { |
|
|
0 |
143 |
if (map->expires_at) { |
|
|
0 |
111 |
if (map->expires_at) { |
|
622
|
0 |
0 |
if (count > SIZE_MAX / 4) return false; /* overflow guard */ |
|
|
0 |
1 |
if (count > SIZE_MAX / 4) return false; /* overflow guard */ |
|
|
0 |
0 |
if (count > SIZE_MAX / 4) return false; /* overflow guard */ |
|
|
0 |
0 |
if (count > SIZE_MAX / 4) return false; /* overflow guard */ |
|
|
0 |
0 |
if (count > SIZE_MAX / 4) return false; /* overflow guard */ |
|
|
0 |
0 |
if (count > SIZE_MAX / 4) return false; /* overflow guard */ |
|
|
0 |
3 |
if (count > SIZE_MAX / 4) return false; /* overflow guard */ |
|
|
0 |
1 |
if (count > SIZE_MAX / 4) return false; /* overflow guard */ |
|
|
0 |
0 |
if (count > SIZE_MAX / 4) return false; /* overflow guard */ |
|
|
0 |
12 |
if (count > SIZE_MAX / 4) return false; /* overflow guard */ |
|
|
0 |
1 |
if (count > SIZE_MAX / 4) return false; /* overflow guard */ |
|
|
0 |
0 |
if (count > SIZE_MAX / 4) return false; /* overflow guard */ |
|
|
0 |
0 |
if (count > SIZE_MAX / 4) return false; /* overflow guard */ |
|
|
0 |
0 |
if (count > SIZE_MAX / 4) return false; /* overflow guard */ |
|
625
|
0 |
0 |
if (needed <= map->capacity) return true; |
|
|
1 |
0 |
if (needed <= map->capacity) return true; |
|
|
0 |
0 |
if (needed <= map->capacity) return true; |
|
|
0 |
0 |
if (needed <= map->capacity) return true; |
|
|
0 |
0 |
if (needed <= map->capacity) return true; |
|
|
0 |
0 |
if (needed <= map->capacity) return true; |
|
|
3 |
0 |
if (needed <= map->capacity) return true; |
|
|
0 |
1 |
if (needed <= map->capacity) return true; |
|
|
0 |
0 |
if (needed <= map->capacity) return true; |
|
|
8 |
4 |
if (needed <= map->capacity) return true; |
|
|
1 |
0 |
if (needed <= map->capacity) return true; |
|
|
0 |
0 |
if (needed <= map->capacity) return true; |
|
|
0 |
0 |
if (needed <= map->capacity) return true; |
|
|
0 |
0 |
if (needed <= map->capacity) return true; |
|
628
|
0 |
0 |
while (cap < needed) cap <<= 1; |
|
|
0 |
0 |
while (cap < needed) cap <<= 1; |
|
|
0 |
0 |
while (cap < needed) cap <<= 1; |
|
|
0 |
0 |
while (cap < needed) cap <<= 1; |
|
|
0 |
0 |
while (cap < needed) cap <<= 1; |
|
|
0 |
0 |
while (cap < needed) cap <<= 1; |
|
|
0 |
0 |
while (cap < needed) cap <<= 1; |
|
|
1 |
1 |
while (cap < needed) cap <<= 1; |
|
|
0 |
0 |
while (cap < needed) cap <<= 1; |
|
|
24 |
4 |
while (cap < needed) cap <<= 1; |
|
|
0 |
0 |
while (cap < needed) cap <<= 1; |
|
|
0 |
0 |
while (cap < needed) cap <<= 1; |
|
|
0 |
0 |
while (cap < needed) cap <<= 1; |
|
|
0 |
0 |
while (cap < needed) cap <<= 1; |
|
643
|
130530 |
22158 |
if (k == key) return index; |
|
|
60020 |
15331 |
if (k == key) return index; |
|
|
100020 |
18811 |
if (k == key) return index; |
|
|
130013 |
22076 |
if (k == key) return index; |
|
|
130117 |
22095 |
if (k == key) return index; |
|
|
400224 |
52680 |
if (k == key) return index; |
|
|
200031 |
29720 |
if (k == key) return index; |
|
|
90013 |
18597 |
if (k == key) return index; |
|
|
110035 |
20784 |
if (k == key) return index; |
|
644
|
8 |
22150 |
if (k == HM_EMPTY_KEY) return index; |
|
|
5 |
15326 |
if (k == HM_EMPTY_KEY) return index; |
|
|
5 |
18806 |
if (k == HM_EMPTY_KEY) return index; |
|
|
4 |
22072 |
if (k == HM_EMPTY_KEY) return index; |
|
|
5 |
22090 |
if (k == HM_EMPTY_KEY) return index; |
|
|
31 |
52649 |
if (k == HM_EMPTY_KEY) return index; |
|
|
10 |
29710 |
if (k == HM_EMPTY_KEY) return index; |
|
|
5 |
18592 |
if (k == HM_EMPTY_KEY) return index; |
|
|
12 |
20772 |
if (k == HM_EMPTY_KEY) return index; |
|
646
|
22150 |
0 |
} while (HM_LIKELY(index != original_index)); |
|
|
15326 |
0 |
} while (HM_LIKELY(index != original_index)); |
|
|
18806 |
0 |
} while (HM_LIKELY(index != original_index)); |
|
|
22072 |
0 |
} while (HM_LIKELY(index != original_index)); |
|
|
22090 |
0 |
} while (HM_LIKELY(index != original_index)); |
|
|
52649 |
0 |
} while (HM_LIKELY(index != original_index)); |
|
|
29710 |
0 |
} while (HM_LIKELY(index != original_index)); |
|
|
18592 |
0 |
} while (HM_LIKELY(index != original_index)); |
|
|
20772 |
0 |
} while (HM_LIKELY(index != original_index)); |
|
660
|
5 |
153671 |
if (nodes[index].key == NULL) return index; /* empty */ |
|
|
9 |
153137 |
if (nodes[index].key == NULL) return index; /* empty */ |
|
|
8 |
153691 |
if (nodes[index].key == NULL) return index; /* empty */ |
|
|
14 |
173151 |
if (nodes[index].key == NULL) return index; /* empty */ |
|
|
10 |
153139 |
if (nodes[index].key == NULL) return index; /* empty */ |
|
661
|
146204 |
7467 |
if (nodes[index].key != HM_STR_TOMBSTONE && |
|
|
145700 |
7437 |
if (nodes[index].key != HM_STR_TOMBSTONE && |
|
|
146224 |
7467 |
if (nodes[index].key != HM_STR_TOMBSTONE && |
|
|
165712 |
7439 |
if (nodes[index].key != HM_STR_TOMBSTONE && |
|
|
145701 |
7438 |
if (nodes[index].key != HM_STR_TOMBSTONE && |
|
662
|
130530 |
15674 |
nodes[index].key_hash == key_hash && |
|
|
130030 |
15670 |
nodes[index].key_hash == key_hash && |
|
|
130546 |
15678 |
nodes[index].key_hash == key_hash && |
|
|
150041 |
15671 |
nodes[index].key_hash == key_hash && |
|
|
130031 |
15670 |
nodes[index].key_hash == key_hash && |
|
663
|
2 |
130528 |
nodes[index].key_len == HM_PACK_LEN(key_len, key_utf8) && |
|
|
130530 |
0 |
nodes[index].key_len == HM_PACK_LEN(key_len, key_utf8) && |
|
|
1 |
130029 |
nodes[index].key_len == HM_PACK_LEN(key_len, key_utf8) && |
|
|
130030 |
0 |
nodes[index].key_len == HM_PACK_LEN(key_len, key_utf8) && |
|
|
7 |
130539 |
nodes[index].key_len == HM_PACK_LEN(key_len, key_utf8) && |
|
|
130546 |
0 |
nodes[index].key_len == HM_PACK_LEN(key_len, key_utf8) && |
|
|
1 |
150040 |
nodes[index].key_len == HM_PACK_LEN(key_len, key_utf8) && |
|
|
150041 |
0 |
nodes[index].key_len == HM_PACK_LEN(key_len, key_utf8) && |
|
|
2 |
130029 |
nodes[index].key_len == HM_PACK_LEN(key_len, key_utf8) && |
|
|
130031 |
0 |
nodes[index].key_len == HM_PACK_LEN(key_len, key_utf8) && |
|
664
|
130530 |
0 |
memcmp(nodes[index].key, key, key_len) == 0) { |
|
|
130030 |
0 |
memcmp(nodes[index].key, key, key_len) == 0) { |
|
|
130546 |
0 |
memcmp(nodes[index].key, key, key_len) == 0) { |
|
|
150041 |
0 |
memcmp(nodes[index].key, key, key_len) == 0) { |
|
|
130031 |
0 |
memcmp(nodes[index].key, key, key_len) == 0) { |
|
668
|
23141 |
0 |
} while (HM_LIKELY(index != original_index)); |
|
|
23107 |
0 |
} while (HM_LIKELY(index != original_index)); |
|
|
23145 |
0 |
} while (HM_LIKELY(index != original_index)); |
|
|
23110 |
0 |
} while (HM_LIKELY(index != original_index)); |
|
|
23108 |
0 |
} while (HM_LIKELY(index != original_index)); |
|
687
|
8 |
270745 |
if (k == key) { |
|
|
3 |
108689 |
if (k == key) { |
|
|
3 |
193372 |
if (k == key) { |
|
|
1 |
266886 |
if (k == key) { |
|
|
8 |
268571 |
if (k == key) { |
|
|
13 |
918633 |
if (k == key) { |
|
|
2 |
405878 |
if (k == key) { |
|
|
1 |
182163 |
if (k == key) { |
|
|
2 |
221155 |
if (k == key) { |
|
691
|
82207 |
188538 |
if (k == HM_EMPTY_KEY) { |
|
|
30068 |
78621 |
if (k == HM_EMPTY_KEY) { |
|
|
50128 |
143244 |
if (k == HM_EMPTY_KEY) { |
|
|
80598 |
186288 |
if (k == HM_EMPTY_KEY) { |
|
|
81214 |
187357 |
if (k == HM_EMPTY_KEY) { |
|
|
387730 |
530903 |
if (k == HM_EMPTY_KEY) { |
|
|
150254 |
255624 |
if (k == HM_EMPTY_KEY) { |
|
|
60495 |
121668 |
if (k == HM_EMPTY_KEY) { |
|
|
81230 |
139925 |
if (k == HM_EMPTY_KEY) { |
|
693
|
71 |
82136 |
return (first_tombstone < map->capacity) ? first_tombstone : index; |
|
|
1 |
30067 |
return (first_tombstone < map->capacity) ? first_tombstone : index; |
|
|
1 |
50127 |
return (first_tombstone < map->capacity) ? first_tombstone : index; |
|
|
55 |
80543 |
return (first_tombstone < map->capacity) ? first_tombstone : index; |
|
|
54 |
81160 |
return (first_tombstone < map->capacity) ? first_tombstone : index; |
|
|
1579 |
386151 |
return (first_tombstone < map->capacity) ? first_tombstone : index; |
|
|
4 |
150250 |
return (first_tombstone < map->capacity) ? first_tombstone : index; |
|
|
54 |
60441 |
return (first_tombstone < map->capacity) ? first_tombstone : index; |
|
|
5 |
81225 |
return (first_tombstone < map->capacity) ? first_tombstone : index; |
|
695
|
73 |
188465 |
if (k == HM_TOMBSTONE_KEY && first_tombstone >= map->capacity) { |
|
|
71 |
2 |
if (k == HM_TOMBSTONE_KEY && first_tombstone >= map->capacity) { |
|
|
1 |
78620 |
if (k == HM_TOMBSTONE_KEY && first_tombstone >= map->capacity) { |
|
|
1 |
0 |
if (k == HM_TOMBSTONE_KEY && first_tombstone >= map->capacity) { |
|
|
1 |
143243 |
if (k == HM_TOMBSTONE_KEY && first_tombstone >= map->capacity) { |
|
|
1 |
0 |
if (k == HM_TOMBSTONE_KEY && first_tombstone >= map->capacity) { |
|
|
57 |
186231 |
if (k == HM_TOMBSTONE_KEY && first_tombstone >= map->capacity) { |
|
|
55 |
2 |
if (k == HM_TOMBSTONE_KEY && first_tombstone >= map->capacity) { |
|
|
56 |
187301 |
if (k == HM_TOMBSTONE_KEY && first_tombstone >= map->capacity) { |
|
|
54 |
2 |
if (k == HM_TOMBSTONE_KEY && first_tombstone >= map->capacity) { |
|
|
3163 |
527740 |
if (k == HM_TOMBSTONE_KEY && first_tombstone >= map->capacity) { |
|
|
1579 |
1584 |
if (k == HM_TOMBSTONE_KEY && first_tombstone >= map->capacity) { |
|
|
4 |
255620 |
if (k == HM_TOMBSTONE_KEY && first_tombstone >= map->capacity) { |
|
|
4 |
0 |
if (k == HM_TOMBSTONE_KEY && first_tombstone >= map->capacity) { |
|
|
56 |
121612 |
if (k == HM_TOMBSTONE_KEY && first_tombstone >= map->capacity) { |
|
|
54 |
2 |
if (k == HM_TOMBSTONE_KEY && first_tombstone >= map->capacity) { |
|
|
5 |
139920 |
if (k == HM_TOMBSTONE_KEY && first_tombstone >= map->capacity) { |
|
|
5 |
0 |
if (k == HM_TOMBSTONE_KEY && first_tombstone >= map->capacity) { |
|
699
|
188538 |
0 |
} while (index != original_index); |
|
|
78621 |
0 |
} while (index != original_index); |
|
|
143244 |
0 |
} while (index != original_index); |
|
|
186288 |
0 |
} while (index != original_index); |
|
|
187357 |
0 |
} while (index != original_index); |
|
|
530903 |
0 |
} while (index != original_index); |
|
|
255624 |
0 |
} while (index != original_index); |
|
|
121668 |
0 |
} while (index != original_index); |
|
|
139925 |
0 |
} while (index != original_index); |
|
716
|
81921 |
172458 |
if (nodes[index].key == NULL) { |
|
|
80225 |
170740 |
if (nodes[index].key == NULL) { |
|
|
82826 |
173951 |
if (nodes[index].key == NULL) { |
|
|
80274 |
170772 |
if (nodes[index].key == NULL) { |
|
|
80122 |
170459 |
if (nodes[index].key == NULL) { |
|
718
|
117 |
81804 |
return (first_tombstone < map->capacity) ? first_tombstone : index; |
|
|
2 |
80223 |
return (first_tombstone < map->capacity) ? first_tombstone : index; |
|
|
120 |
82706 |
return (first_tombstone < map->capacity) ? first_tombstone : index; |
|
|
2 |
80272 |
return (first_tombstone < map->capacity) ? first_tombstone : index; |
|
|
2 |
80120 |
return (first_tombstone < map->capacity) ? first_tombstone : index; |
|
720
|
135 |
172323 |
if (nodes[index].key == HM_STR_TOMBSTONE) { |
|
|
2 |
170738 |
if (nodes[index].key == HM_STR_TOMBSTONE) { |
|
|
139 |
173812 |
if (nodes[index].key == HM_STR_TOMBSTONE) { |
|
|
2 |
170770 |
if (nodes[index].key == HM_STR_TOMBSTONE) { |
|
|
2 |
170457 |
if (nodes[index].key == HM_STR_TOMBSTONE) { |
|
721
|
117 |
18 |
if (first_tombstone >= map->capacity) first_tombstone = index; |
|
|
2 |
0 |
if (first_tombstone >= map->capacity) first_tombstone = index; |
|
|
120 |
19 |
if (first_tombstone >= map->capacity) first_tombstone = index; |
|
|
2 |
0 |
if (first_tombstone >= map->capacity) first_tombstone = index; |
|
|
2 |
0 |
if (first_tombstone >= map->capacity) first_tombstone = index; |
|
722
|
8 |
172315 |
} else if (nodes[index].key_hash == key_hash && |
|
|
1 |
170737 |
} else if (nodes[index].key_hash == key_hash && |
|
|
9 |
173803 |
} else if (nodes[index].key_hash == key_hash && |
|
|
4 |
170766 |
} else if (nodes[index].key_hash == key_hash && |
|
|
1 |
170456 |
} else if (nodes[index].key_hash == key_hash && |
|
723
|
0 |
8 |
nodes[index].key_len == HM_PACK_LEN(key_len, key_utf8) && |
|
|
8 |
0 |
nodes[index].key_len == HM_PACK_LEN(key_len, key_utf8) && |
|
|
0 |
1 |
nodes[index].key_len == HM_PACK_LEN(key_len, key_utf8) && |
|
|
1 |
0 |
nodes[index].key_len == HM_PACK_LEN(key_len, key_utf8) && |
|
|
0 |
9 |
nodes[index].key_len == HM_PACK_LEN(key_len, key_utf8) && |
|
|
9 |
0 |
nodes[index].key_len == HM_PACK_LEN(key_len, key_utf8) && |
|
|
0 |
4 |
nodes[index].key_len == HM_PACK_LEN(key_len, key_utf8) && |
|
|
4 |
0 |
nodes[index].key_len == HM_PACK_LEN(key_len, key_utf8) && |
|
|
0 |
1 |
nodes[index].key_len == HM_PACK_LEN(key_len, key_utf8) && |
|
|
1 |
0 |
nodes[index].key_len == HM_PACK_LEN(key_len, key_utf8) && |
|
724
|
8 |
0 |
memcmp(nodes[index].key, key, key_len) == 0) { |
|
|
1 |
0 |
memcmp(nodes[index].key, key, key_len) == 0) { |
|
|
9 |
0 |
memcmp(nodes[index].key, key, key_len) == 0) { |
|
|
4 |
0 |
memcmp(nodes[index].key, key, key_len) == 0) { |
|
|
1 |
0 |
memcmp(nodes[index].key, key, key_len) == 0) { |
|
729
|
172450 |
0 |
} while (index != original_index); |
|
|
170739 |
0 |
} while (index != original_index); |
|
|
173942 |
0 |
} while (index != original_index); |
|
|
170768 |
0 |
} while (index != original_index); |
|
|
170458 |
0 |
} while (index != original_index); |
|
750
|
82029 |
0 |
if (!map || HM_IS_RESERVED_KEY(key)) return false; |
|
|
82028 |
1 |
if (!map || HM_IS_RESERVED_KEY(key)) return false; |
|
|
1 |
82027 |
if (!map || HM_IS_RESERVED_KEY(key)) return false; |
|
|
30068 |
0 |
if (!map || HM_IS_RESERVED_KEY(key)) return false; |
|
|
30067 |
1 |
if (!map || HM_IS_RESERVED_KEY(key)) return false; |
|
|
1 |
30066 |
if (!map || HM_IS_RESERVED_KEY(key)) return false; |
|
|
50128 |
0 |
if (!map || HM_IS_RESERVED_KEY(key)) return false; |
|
|
50127 |
1 |
if (!map || HM_IS_RESERVED_KEY(key)) return false; |
|
|
1 |
50126 |
if (!map || HM_IS_RESERVED_KEY(key)) return false; |
|
|
80420 |
0 |
if (!map || HM_IS_RESERVED_KEY(key)) return false; |
|
|
80419 |
1 |
if (!map || HM_IS_RESERVED_KEY(key)) return false; |
|
|
1 |
80418 |
if (!map || HM_IS_RESERVED_KEY(key)) return false; |
|
|
81034 |
0 |
if (!map || HM_IS_RESERVED_KEY(key)) return false; |
|
|
81033 |
1 |
if (!map || HM_IS_RESERVED_KEY(key)) return false; |
|
|
1 |
81032 |
if (!map || HM_IS_RESERVED_KEY(key)) return false; |
|
|
385052 |
0 |
if (!map || HM_IS_RESERVED_KEY(key)) return false; |
|
|
385051 |
1 |
if (!map || HM_IS_RESERVED_KEY(key)) return false; |
|
|
1 |
385050 |
if (!map || HM_IS_RESERVED_KEY(key)) return false; |
|
|
150255 |
0 |
if (!map || HM_IS_RESERVED_KEY(key)) return false; |
|
|
150254 |
1 |
if (!map || HM_IS_RESERVED_KEY(key)) return false; |
|
|
1 |
150253 |
if (!map || HM_IS_RESERVED_KEY(key)) return false; |
|
|
60316 |
0 |
if (!map || HM_IS_RESERVED_KEY(key)) return false; |
|
|
60315 |
1 |
if (!map || HM_IS_RESERVED_KEY(key)) return false; |
|
|
1 |
60314 |
if (!map || HM_IS_RESERVED_KEY(key)) return false; |
|
|
81231 |
0 |
if (!map || HM_IS_RESERVED_KEY(key)) return false; |
|
|
81230 |
1 |
if (!map || HM_IS_RESERVED_KEY(key)) return false; |
|
|
1 |
81229 |
if (!map || HM_IS_RESERVED_KEY(key)) return false; |
|
752
|
157 |
81870 |
if ((map->size + map->tombstones) * 4 >= map->capacity * 3) { |
|
|
14 |
30052 |
if ((map->size + map->tombstones) * 4 >= map->capacity * 3) { |
|
|
19 |
50107 |
if ((map->size + map->tombstones) * 4 >= map->capacity * 3) { |
|
|
97 |
80321 |
if ((map->size + map->tombstones) * 4 >= map->capacity * 3) { |
|
|
133 |
80899 |
if ((map->size + map->tombstones) * 4 >= map->capacity * 3) { |
|
|
292 |
384758 |
if ((map->size + map->tombstones) * 4 >= map->capacity * 3) { |
|
|
32 |
150221 |
if ((map->size + map->tombstones) * 4 >= map->capacity * 3) { |
|
|
94 |
60220 |
if ((map->size + map->tombstones) * 4 >= map->capacity * 3) { |
|
|
37 |
81192 |
if ((map->size + map->tombstones) * 4 >= map->capacity * 3) { |
|
753
|
66 |
91 |
if (map->max_size > 0 && map->tombstones > 0) { |
|
|
66 |
0 |
if (map->max_size > 0 && map->tombstones > 0) { |
|
|
0 |
14 |
if (map->max_size > 0 && map->tombstones > 0) { |
|
|
0 |
0 |
if (map->max_size > 0 && map->tombstones > 0) { |
|
|
0 |
19 |
if (map->max_size > 0 && map->tombstones > 0) { |
|
|
0 |
0 |
if (map->max_size > 0 && map->tombstones > 0) { |
|
|
66 |
31 |
if (map->max_size > 0 && map->tombstones > 0) { |
|
|
66 |
0 |
if (map->max_size > 0 && map->tombstones > 0) { |
|
|
66 |
67 |
if (map->max_size > 0 && map->tombstones > 0) { |
|
|
66 |
0 |
if (map->max_size > 0 && map->tombstones > 0) { |
|
|
227 |
65 |
if (map->max_size > 0 && map->tombstones > 0) { |
|
|
212 |
15 |
if (map->max_size > 0 && map->tombstones > 0) { |
|
|
0 |
32 |
if (map->max_size > 0 && map->tombstones > 0) { |
|
|
0 |
0 |
if (map->max_size > 0 && map->tombstones > 0) { |
|
|
66 |
28 |
if (map->max_size > 0 && map->tombstones > 0) { |
|
|
66 |
0 |
if (map->max_size > 0 && map->tombstones > 0) { |
|
|
0 |
37 |
if (map->max_size > 0 && map->tombstones > 0) { |
|
|
0 |
0 |
if (map->max_size > 0 && map->tombstones > 0) { |
|
754
|
0 |
66 |
if (!HM_FN(compact)(map)) return false; |
|
|
0 |
0 |
if (!HM_FN(compact)(map)) return false; |
|
|
0 |
0 |
if (!HM_FN(compact)(map)) return false; |
|
|
0 |
66 |
if (!HM_FN(compact)(map)) return false; |
|
|
0 |
66 |
if (!HM_FN(compact)(map)) return false; |
|
|
0 |
212 |
if (!HM_FN(compact)(map)) return false; |
|
|
0 |
0 |
if (!HM_FN(compact)(map)) return false; |
|
|
0 |
66 |
if (!HM_FN(compact)(map)) return false; |
|
|
0 |
0 |
if (!HM_FN(compact)(map)) return false; |
|
756
|
0 |
91 |
if (!HM_FN(resize)(map)) return false; |
|
|
0 |
14 |
if (!HM_FN(resize)(map)) return false; |
|
|
0 |
19 |
if (!HM_FN(resize)(map)) return false; |
|
|
0 |
31 |
if (!HM_FN(resize)(map)) return false; |
|
|
0 |
67 |
if (!HM_FN(resize)(map)) return false; |
|
|
0 |
80 |
if (!HM_FN(resize)(map)) return false; |
|
|
0 |
32 |
if (!HM_FN(resize)(map)) return false; |
|
|
0 |
28 |
if (!HM_FN(resize)(map)) return false; |
|
|
0 |
37 |
if (!HM_FN(resize)(map)) return false; |
|
762
|
0 |
82027 |
if (index >= map->capacity) return false; |
|
|
0 |
30066 |
if (index >= map->capacity) return false; |
|
|
0 |
50126 |
if (index >= map->capacity) return false; |
|
|
0 |
80418 |
if (index >= map->capacity) return false; |
|
|
0 |
81032 |
if (index >= map->capacity) return false; |
|
|
0 |
385050 |
if (index >= map->capacity) return false; |
|
|
0 |
150253 |
if (index >= map->capacity) return false; |
|
|
0 |
60314 |
if (index >= map->capacity) return false; |
|
|
0 |
81229 |
if (index >= map->capacity) return false; |
|
765
|
82021 |
6 |
if (!found && map->max_size > 0 && map->size >= map->max_size) { |
|
|
211 |
81810 |
if (!found && map->max_size > 0 && map->size >= map->max_size) { |
|
|
183 |
28 |
if (!found && map->max_size > 0 && map->size >= map->max_size) { |
|
|
30064 |
2 |
if (!found && map->max_size > 0 && map->size >= map->max_size) { |
|
|
8 |
30056 |
if (!found && map->max_size > 0 && map->size >= map->max_size) { |
|
|
2 |
6 |
if (!found && map->max_size > 0 && map->size >= map->max_size) { |
|
|
50124 |
2 |
if (!found && map->max_size > 0 && map->size >= map->max_size) { |
|
|
8 |
50116 |
if (!found && map->max_size > 0 && map->size >= map->max_size) { |
|
|
2 |
6 |
if (!found && map->max_size > 0 && map->size >= map->max_size) { |
|
|
80417 |
1 |
if (!found && map->max_size > 0 && map->size >= map->max_size) { |
|
|
203 |
80214 |
if (!found && map->max_size > 0 && map->size >= map->max_size) { |
|
|
181 |
22 |
if (!found && map->max_size > 0 && map->size >= map->max_size) { |
|
|
81027 |
5 |
if (!found && map->max_size > 0 && map->size >= map->max_size) { |
|
|
203 |
80824 |
if (!found && map->max_size > 0 && map->size >= map->max_size) { |
|
|
181 |
22 |
if (!found && map->max_size > 0 && map->size >= map->max_size) { |
|
|
385042 |
8 |
if (!found && map->max_size > 0 && map->size >= map->max_size) { |
|
|
3163 |
381879 |
if (!found && map->max_size > 0 && map->size >= map->max_size) { |
|
|
2676 |
487 |
if (!found && map->max_size > 0 && map->size >= map->max_size) { |
|
|
150252 |
1 |
if (!found && map->max_size > 0 && map->size >= map->max_size) { |
|
|
4 |
150248 |
if (!found && map->max_size > 0 && map->size >= map->max_size) { |
|
|
1 |
3 |
if (!found && map->max_size > 0 && map->size >= map->max_size) { |
|
|
60313 |
1 |
if (!found && map->max_size > 0 && map->size >= map->max_size) { |
|
|
203 |
60110 |
if (!found && map->max_size > 0 && map->size >= map->max_size) { |
|
|
181 |
22 |
if (!found && map->max_size > 0 && map->size >= map->max_size) { |
|
|
81228 |
1 |
if (!found && map->max_size > 0 && map->size >= map->max_size) { |
|
|
4 |
81224 |
if (!found && map->max_size > 0 && map->size >= map->max_size) { |
|
|
1 |
3 |
if (!found && map->max_size > 0 && map->size >= map->max_size) { |
|
769
|
0 |
183 |
if (index >= map->capacity) return false; |
|
|
0 |
2 |
if (index >= map->capacity) return false; |
|
|
0 |
2 |
if (index >= map->capacity) return false; |
|
|
0 |
181 |
if (index >= map->capacity) return false; |
|
|
0 |
181 |
if (index >= map->capacity) return false; |
|
|
0 |
2676 |
if (index >= map->capacity) return false; |
|
|
0 |
1 |
if (index >= map->capacity) return false; |
|
|
0 |
181 |
if (index >= map->capacity) return false; |
|
|
0 |
1 |
if (index >= map->capacity) return false; |
|
773
|
101 |
81926 |
if (HM_UNLIKELY(entry_ttl > 0 && !map->expires_at)) { |
|
|
3 |
98 |
if (HM_UNLIKELY(entry_ttl > 0 && !map->expires_at)) { |
|
|
0 |
30066 |
if (HM_UNLIKELY(entry_ttl > 0 && !map->expires_at)) { |
|
|
0 |
0 |
if (HM_UNLIKELY(entry_ttl > 0 && !map->expires_at)) { |
|
|
0 |
50126 |
if (HM_UNLIKELY(entry_ttl > 0 && !map->expires_at)) { |
|
|
0 |
0 |
if (HM_UNLIKELY(entry_ttl > 0 && !map->expires_at)) { |
|
|
0 |
80418 |
if (HM_UNLIKELY(entry_ttl > 0 && !map->expires_at)) { |
|
|
0 |
0 |
if (HM_UNLIKELY(entry_ttl > 0 && !map->expires_at)) { |
|
|
0 |
81032 |
if (HM_UNLIKELY(entry_ttl > 0 && !map->expires_at)) { |
|
|
0 |
0 |
if (HM_UNLIKELY(entry_ttl > 0 && !map->expires_at)) { |
|
|
108 |
384942 |
if (HM_UNLIKELY(entry_ttl > 0 && !map->expires_at)) { |
|
|
8 |
100 |
if (HM_UNLIKELY(entry_ttl > 0 && !map->expires_at)) { |
|
|
1 |
150252 |
if (HM_UNLIKELY(entry_ttl > 0 && !map->expires_at)) { |
|
|
1 |
0 |
if (HM_UNLIKELY(entry_ttl > 0 && !map->expires_at)) { |
|
|
0 |
60314 |
if (HM_UNLIKELY(entry_ttl > 0 && !map->expires_at)) { |
|
|
0 |
0 |
if (HM_UNLIKELY(entry_ttl > 0 && !map->expires_at)) { |
|
|
0 |
81229 |
if (HM_UNLIKELY(entry_ttl > 0 && !map->expires_at)) { |
|
|
0 |
0 |
if (HM_UNLIKELY(entry_ttl > 0 && !map->expires_at)) { |
|
775
|
0 |
3 |
if (!map->expires_at) return false; |
|
|
0 |
0 |
if (!map->expires_at) return false; |
|
|
0 |
0 |
if (!map->expires_at) return false; |
|
|
0 |
0 |
if (!map->expires_at) return false; |
|
|
0 |
0 |
if (!map->expires_at) return false; |
|
|
0 |
8 |
if (!map->expires_at) return false; |
|
|
0 |
1 |
if (!map->expires_at) return false; |
|
|
0 |
0 |
if (!map->expires_at) return false; |
|
|
0 |
0 |
if (!map->expires_at) return false; |
|
782
|
80418 |
0 |
if (value && val_len > 0) { |
|
|
80417 |
1 |
if (value && val_len > 0) { |
|
|
81032 |
0 |
if (value && val_len > 0) { |
|
|
81031 |
1 |
if (value && val_len > 0) { |
|
|
60314 |
0 |
if (value && val_len > 0) { |
|
|
60314 |
0 |
if (value && val_len > 0) { |
|
784
|
0 |
80417 |
if (!new_val) return false; |
|
|
0 |
81031 |
if (!new_val) return false; |
|
|
0 |
60314 |
if (!new_val) return false; |
|
787
|
1 |
80416 |
new_val_len = HM_PACK_LEN(val_len, val_utf8); |
|
|
101 |
80930 |
new_val_len = HM_PACK_LEN(val_len, val_utf8); |
|
|
1 |
60313 |
new_val_len = HM_PACK_LEN(val_len, val_utf8); |
|
788
|
1 |
0 |
} else if (value) { |
|
|
1 |
0 |
} else if (value) { |
|
|
0 |
0 |
} else if (value) { |
|
790
|
0 |
1 |
if (!new_val) return false; |
|
|
0 |
1 |
if (!new_val) return false; |
|
|
0 |
0 |
if (!new_val) return false; |
|
792
|
0 |
1 |
new_val_len = HM_PACK_LEN(0, val_utf8); |
|
|
0 |
1 |
new_val_len = HM_PACK_LEN(0, val_utf8); |
|
|
0 |
0 |
new_val_len = HM_PACK_LEN(0, val_utf8); |
|
796
|
6 |
82021 |
if (found) { |
|
|
2 |
30064 |
if (found) { |
|
|
2 |
50124 |
if (found) { |
|
|
1 |
80417 |
if (found) { |
|
|
5 |
81027 |
if (found) { |
|
|
385042 |
8 |
if (found) { |
|
|
150252 |
1 |
if (found) { |
|
|
1 |
60313 |
if (found) { |
|
|
81228 |
1 |
if (found) { |
|
798
|
1 |
0 |
if (map->nodes[index].value) free(map->nodes[index].value); |
|
|
5 |
0 |
if (map->nodes[index].value) free(map->nodes[index].value); |
|
|
1 |
0 |
if (map->nodes[index].value) free(map->nodes[index].value); |
|
800
|
6 |
0 |
if (map->nodes[index].value && map->free_value_fn) |
|
|
6 |
0 |
if (map->nodes[index].value && map->free_value_fn) |
|
|
2 |
0 |
if (map->nodes[index].value && map->free_value_fn) |
|
|
2 |
0 |
if (map->nodes[index].value && map->free_value_fn) |
|
|
2 |
0 |
if (map->nodes[index].value && map->free_value_fn) |
|
|
2 |
0 |
if (map->nodes[index].value && map->free_value_fn) |
|
804
|
62 |
81959 |
if (map->nodes[index].key == HM_TOMBSTONE_KEY) { |
|
|
0 |
30064 |
if (map->nodes[index].key == HM_TOMBSTONE_KEY) { |
|
|
0 |
50124 |
if (map->nodes[index].key == HM_TOMBSTONE_KEY) { |
|
|
47 |
80370 |
if (map->nodes[index].key == HM_TOMBSTONE_KEY) { |
|
|
46 |
80981 |
if (map->nodes[index].key == HM_TOMBSTONE_KEY) { |
|
|
848 |
384194 |
if (map->nodes[index].key == HM_TOMBSTONE_KEY) { |
|
|
4 |
150248 |
if (map->nodes[index].key == HM_TOMBSTONE_KEY) { |
|
|
46 |
60267 |
if (map->nodes[index].key == HM_TOMBSTONE_KEY) { |
|
|
5 |
81223 |
if (map->nodes[index].key == HM_TOMBSTONE_KEY) { |
|
819
|
211 |
81816 |
if (HM_UNLIKELY(map->lru_prev)) { |
|
|
8 |
30058 |
if (HM_UNLIKELY(map->lru_prev)) { |
|
|
8 |
50118 |
if (HM_UNLIKELY(map->lru_prev)) { |
|
|
203 |
80215 |
if (HM_UNLIKELY(map->lru_prev)) { |
|
|
203 |
80829 |
if (HM_UNLIKELY(map->lru_prev)) { |
|
|
3166 |
381884 |
if (HM_UNLIKELY(map->lru_prev)) { |
|
|
4 |
150249 |
if (HM_UNLIKELY(map->lru_prev)) { |
|
|
203 |
60111 |
if (HM_UNLIKELY(map->lru_prev)) { |
|
|
4 |
81225 |
if (HM_UNLIKELY(map->lru_prev)) { |
|
820
|
0 |
211 |
if (found) HM_FN(lru_promote)(map, (uint32_t)index); |
|
|
0 |
8 |
if (found) HM_FN(lru_promote)(map, (uint32_t)index); |
|
|
0 |
8 |
if (found) HM_FN(lru_promote)(map, (uint32_t)index); |
|
|
0 |
203 |
if (found) HM_FN(lru_promote)(map, (uint32_t)index); |
|
|
0 |
203 |
if (found) HM_FN(lru_promote)(map, (uint32_t)index); |
|
|
3 |
3163 |
if (found) HM_FN(lru_promote)(map, (uint32_t)index); |
|
|
0 |
4 |
if (found) HM_FN(lru_promote)(map, (uint32_t)index); |
|
|
0 |
203 |
if (found) HM_FN(lru_promote)(map, (uint32_t)index); |
|
|
0 |
4 |
if (found) HM_FN(lru_promote)(map, (uint32_t)index); |
|
824
|
203 |
81824 |
if (map->expires_at) { |
|
|
1 |
30065 |
if (map->expires_at) { |
|
|
1 |
50125 |
if (map->expires_at) { |
|
|
0 |
80418 |
if (map->expires_at) { |
|
|
1 |
81031 |
if (map->expires_at) { |
|
|
199 |
384851 |
if (map->expires_at) { |
|
|
1 |
150252 |
if (map->expires_at) { |
|
|
0 |
60314 |
if (map->expires_at) { |
|
|
1 |
81228 |
if (map->expires_at) { |
|
825
|
102 |
101 |
uint32_t ttl = entry_ttl > 0 ? entry_ttl : map->default_ttl; |
|
|
1 |
0 |
uint32_t ttl = entry_ttl > 0 ? entry_ttl : map->default_ttl; |
|
|
1 |
0 |
uint32_t ttl = entry_ttl > 0 ? entry_ttl : map->default_ttl; |
|
|
0 |
0 |
uint32_t ttl = entry_ttl > 0 ? entry_ttl : map->default_ttl; |
|
|
1 |
0 |
uint32_t ttl = entry_ttl > 0 ? entry_ttl : map->default_ttl; |
|
|
91 |
108 |
uint32_t ttl = entry_ttl > 0 ? entry_ttl : map->default_ttl; |
|
|
0 |
1 |
uint32_t ttl = entry_ttl > 0 ? entry_ttl : map->default_ttl; |
|
|
0 |
0 |
uint32_t ttl = entry_ttl > 0 ? entry_ttl : map->default_ttl; |
|
|
1 |
0 |
uint32_t ttl = entry_ttl > 0 ? entry_ttl : map->default_ttl; |
|
826
|
203 |
0 |
if (ttl > 0) |
|
|
1 |
0 |
if (ttl > 0) |
|
|
1 |
0 |
if (ttl > 0) |
|
|
0 |
0 |
if (ttl > 0) |
|
|
1 |
0 |
if (ttl > 0) |
|
|
196 |
3 |
if (ttl > 0) |
|
|
1 |
0 |
if (ttl > 0) |
|
|
0 |
0 |
if (ttl > 0) |
|
|
1 |
0 |
if (ttl > 0) |
|
847
|
81582 |
0 |
if (!map || !key) return false; |
|
|
0 |
81582 |
if (!map || !key) return false; |
|
|
80224 |
0 |
if (!map || !key) return false; |
|
|
0 |
80224 |
if (!map || !key) return false; |
|
|
82475 |
0 |
if (!map || !key) return false; |
|
|
0 |
82475 |
if (!map || !key) return false; |
|
|
80269 |
0 |
if (!map || !key) return false; |
|
|
0 |
80269 |
if (!map || !key) return false; |
|
|
80122 |
0 |
if (!map || !key) return false; |
|
|
0 |
80122 |
if (!map || !key) return false; |
|
849
|
171 |
81411 |
if ((map->size + map->tombstones) * 4 >= map->capacity * 3) { |
|
|
31 |
80193 |
if ((map->size + map->tombstones) * 4 >= map->capacity * 3) { |
|
|
206 |
82269 |
if ((map->size + map->tombstones) * 4 >= map->capacity * 3) { |
|
|
32 |
80237 |
if ((map->size + map->tombstones) * 4 >= map->capacity * 3) { |
|
|
29 |
80093 |
if ((map->size + map->tombstones) * 4 >= map->capacity * 3) { |
|
850
|
104 |
67 |
if (map->max_size > 0 && map->tombstones > 0) { |
|
|
102 |
2 |
if (map->max_size > 0 && map->tombstones > 0) { |
|
|
0 |
31 |
if (map->max_size > 0 && map->tombstones > 0) { |
|
|
0 |
0 |
if (map->max_size > 0 && map->tombstones > 0) { |
|
|
107 |
99 |
if (map->max_size > 0 && map->tombstones > 0) { |
|
|
105 |
2 |
if (map->max_size > 0 && map->tombstones > 0) { |
|
|
0 |
32 |
if (map->max_size > 0 && map->tombstones > 0) { |
|
|
0 |
0 |
if (map->max_size > 0 && map->tombstones > 0) { |
|
|
0 |
29 |
if (map->max_size > 0 && map->tombstones > 0) { |
|
|
0 |
0 |
if (map->max_size > 0 && map->tombstones > 0) { |
|
851
|
0 |
102 |
if (!HM_FN(compact)(map)) return false; |
|
|
0 |
0 |
if (!HM_FN(compact)(map)) return false; |
|
|
0 |
105 |
if (!HM_FN(compact)(map)) return false; |
|
|
0 |
0 |
if (!HM_FN(compact)(map)) return false; |
|
|
0 |
0 |
if (!HM_FN(compact)(map)) return false; |
|
853
|
0 |
69 |
if (!HM_FN(resize)(map)) return false; |
|
|
0 |
31 |
if (!HM_FN(resize)(map)) return false; |
|
|
0 |
101 |
if (!HM_FN(resize)(map)) return false; |
|
|
0 |
32 |
if (!HM_FN(resize)(map)) return false; |
|
|
0 |
29 |
if (!HM_FN(resize)(map)) return false; |
|
859
|
0 |
81582 |
if (index >= map->capacity) return false; |
|
|
0 |
80224 |
if (index >= map->capacity) return false; |
|
|
0 |
82475 |
if (index >= map->capacity) return false; |
|
|
0 |
80269 |
if (index >= map->capacity) return false; |
|
|
0 |
80122 |
if (index >= map->capacity) return false; |
|
862
|
81576 |
6 |
if (!found && map->max_size > 0 && map->size >= map->max_size) { |
|
|
409 |
81167 |
if (!found && map->max_size > 0 && map->size >= map->max_size) { |
|
|
342 |
67 |
if (!found && map->max_size > 0 && map->size >= map->max_size) { |
|
|
80223 |
1 |
if (!found && map->max_size > 0 && map->size >= map->max_size) { |
|
|
4 |
80219 |
if (!found && map->max_size > 0 && map->size >= map->max_size) { |
|
|
1 |
3 |
if (!found && map->max_size > 0 && map->size >= map->max_size) { |
|
|
82469 |
6 |
if (!found && map->max_size > 0 && map->size >= map->max_size) { |
|
|
426 |
82043 |
if (!found && map->max_size > 0 && map->size >= map->max_size) { |
|
|
351 |
75 |
if (!found && map->max_size > 0 && map->size >= map->max_size) { |
|
|
80268 |
1 |
if (!found && map->max_size > 0 && map->size >= map->max_size) { |
|
|
5 |
80263 |
if (!found && map->max_size > 0 && map->size >= map->max_size) { |
|
|
1 |
4 |
if (!found && map->max_size > 0 && map->size >= map->max_size) { |
|
|
80121 |
1 |
if (!found && map->max_size > 0 && map->size >= map->max_size) { |
|
|
5 |
80116 |
if (!found && map->max_size > 0 && map->size >= map->max_size) { |
|
|
1 |
4 |
if (!found && map->max_size > 0 && map->size >= map->max_size) { |
|
866
|
0 |
342 |
if (index >= map->capacity) return false; |
|
|
0 |
1 |
if (index >= map->capacity) return false; |
|
|
0 |
351 |
if (index >= map->capacity) return false; |
|
|
0 |
1 |
if (index >= map->capacity) return false; |
|
|
0 |
1 |
if (index >= map->capacity) return false; |
|
870
|
1 |
81581 |
if (HM_UNLIKELY(entry_ttl > 0 && !map->expires_at)) { |
|
|
1 |
0 |
if (HM_UNLIKELY(entry_ttl > 0 && !map->expires_at)) { |
|
|
1 |
80223 |
if (HM_UNLIKELY(entry_ttl > 0 && !map->expires_at)) { |
|
|
1 |
0 |
if (HM_UNLIKELY(entry_ttl > 0 && !map->expires_at)) { |
|
|
102 |
82373 |
if (HM_UNLIKELY(entry_ttl > 0 && !map->expires_at)) { |
|
|
4 |
98 |
if (HM_UNLIKELY(entry_ttl > 0 && !map->expires_at)) { |
|
|
0 |
80269 |
if (HM_UNLIKELY(entry_ttl > 0 && !map->expires_at)) { |
|
|
0 |
0 |
if (HM_UNLIKELY(entry_ttl > 0 && !map->expires_at)) { |
|
|
1 |
80121 |
if (HM_UNLIKELY(entry_ttl > 0 && !map->expires_at)) { |
|
|
1 |
0 |
if (HM_UNLIKELY(entry_ttl > 0 && !map->expires_at)) { |
|
872
|
0 |
1 |
if (!map->expires_at) return false; |
|
|
0 |
1 |
if (!map->expires_at) return false; |
|
|
0 |
4 |
if (!map->expires_at) return false; |
|
|
0 |
0 |
if (!map->expires_at) return false; |
|
|
0 |
1 |
if (!map->expires_at) return false; |
|
879
|
82475 |
0 |
if (value && val_len > 0) { |
|
|
82474 |
1 |
if (value && val_len > 0) { |
|
881
|
0 |
82474 |
if (!new_val) return false; |
|
884
|
106 |
82368 |
new_val_len = HM_PACK_LEN(val_len, val_utf8); |
|
885
|
1 |
0 |
} else if (value) { |
|
887
|
0 |
1 |
if (!new_val) return false; |
|
889
|
0 |
1 |
new_val_len = HM_PACK_LEN(0, val_utf8); |
|
893
|
6 |
81576 |
if (found) { |
|
|
1 |
80223 |
if (found) { |
|
|
6 |
82469 |
if (found) { |
|
|
1 |
80268 |
if (found) { |
|
|
1 |
80121 |
if (found) { |
|
895
|
6 |
0 |
if (map->nodes[index].value) free(map->nodes[index].value); |
|
897
|
6 |
0 |
if (map->nodes[index].value && map->free_value_fn) |
|
|
6 |
0 |
if (map->nodes[index].value && map->free_value_fn) |
|
900
|
0 |
6 |
map->nodes[index].key_len = HM_PACK_LEN(key_len, key_utf8); |
|
|
0 |
1 |
map->nodes[index].key_len = HM_PACK_LEN(key_len, key_utf8); |
|
|
0 |
6 |
map->nodes[index].key_len = HM_PACK_LEN(key_len, key_utf8); |
|
|
0 |
1 |
map->nodes[index].key_len = HM_PACK_LEN(key_len, key_utf8); |
|
|
0 |
1 |
map->nodes[index].key_len = HM_PACK_LEN(key_len, key_utf8); |
|
903
|
0 |
81576 |
if (!new_key) { |
|
|
0 |
80223 |
if (!new_key) { |
|
|
0 |
82469 |
if (!new_key) { |
|
|
0 |
80268 |
if (!new_key) { |
|
|
0 |
80121 |
if (!new_key) { |
|
911
|
84 |
81492 |
if (HM_SLOT_IS_TOMBSTONE(&map->nodes[index])) { |
|
|
2 |
80221 |
if (HM_SLOT_IS_TOMBSTONE(&map->nodes[index])) { |
|
|
87 |
82382 |
if (HM_SLOT_IS_TOMBSTONE(&map->nodes[index])) { |
|
|
2 |
80266 |
if (HM_SLOT_IS_TOMBSTONE(&map->nodes[index])) { |
|
|
2 |
80119 |
if (HM_SLOT_IS_TOMBSTONE(&map->nodes[index])) { |
|
916
|
2 |
81574 |
map->nodes[index].key_len = HM_PACK_LEN(key_len, key_utf8); |
|
|
2 |
80221 |
map->nodes[index].key_len = HM_PACK_LEN(key_len, key_utf8); |
|
|
107 |
82362 |
map->nodes[index].key_len = HM_PACK_LEN(key_len, key_utf8); |
|
|
2 |
80266 |
map->nodes[index].key_len = HM_PACK_LEN(key_len, key_utf8); |
|
|
2 |
80119 |
map->nodes[index].key_len = HM_PACK_LEN(key_len, key_utf8); |
|
928
|
409 |
81173 |
if (HM_UNLIKELY(map->lru_prev)) { |
|
|
4 |
80220 |
if (HM_UNLIKELY(map->lru_prev)) { |
|
|
426 |
82049 |
if (HM_UNLIKELY(map->lru_prev)) { |
|
|
5 |
80264 |
if (HM_UNLIKELY(map->lru_prev)) { |
|
|
5 |
80117 |
if (HM_UNLIKELY(map->lru_prev)) { |
|
929
|
0 |
409 |
if (found) HM_FN(lru_promote)(map, (uint32_t)index); |
|
|
0 |
4 |
if (found) HM_FN(lru_promote)(map, (uint32_t)index); |
|
|
0 |
426 |
if (found) HM_FN(lru_promote)(map, (uint32_t)index); |
|
|
0 |
5 |
if (found) HM_FN(lru_promote)(map, (uint32_t)index); |
|
|
0 |
5 |
if (found) HM_FN(lru_promote)(map, (uint32_t)index); |
|
933
|
203 |
81379 |
if (map->expires_at) { |
|
|
1 |
80223 |
if (map->expires_at) { |
|
|
411 |
82064 |
if (map->expires_at) { |
|
|
1 |
80268 |
if (map->expires_at) { |
|
|
2 |
80120 |
if (map->expires_at) { |
|
934
|
202 |
1 |
uint32_t ttl = entry_ttl > 0 ? entry_ttl : map->default_ttl; |
|
|
0 |
1 |
uint32_t ttl = entry_ttl > 0 ? entry_ttl : map->default_ttl; |
|
|
309 |
102 |
uint32_t ttl = entry_ttl > 0 ? entry_ttl : map->default_ttl; |
|
|
1 |
0 |
uint32_t ttl = entry_ttl > 0 ? entry_ttl : map->default_ttl; |
|
|
1 |
1 |
uint32_t ttl = entry_ttl > 0 ? entry_ttl : map->default_ttl; |
|
935
|
203 |
0 |
if (ttl > 0) |
|
|
1 |
0 |
if (ttl > 0) |
|
|
409 |
2 |
if (ttl > 0) |
|
|
1 |
0 |
if (ttl > 0) |
|
|
2 |
0 |
if (ttl > 0) |
|
953
|
50011 |
0 |
if (!map || HM_IS_RESERVED_KEY(key)) return false; |
|
|
50010 |
1 |
if (!map || HM_IS_RESERVED_KEY(key)) return false; |
|
|
0 |
50010 |
if (!map || HM_IS_RESERVED_KEY(key)) return false; |
|
|
50016 |
0 |
if (!map || HM_IS_RESERVED_KEY(key)) return false; |
|
|
50015 |
1 |
if (!map || HM_IS_RESERVED_KEY(key)) return false; |
|
|
0 |
50015 |
if (!map || HM_IS_RESERVED_KEY(key)) return false; |
|
|
30011 |
0 |
if (!map || HM_IS_RESERVED_KEY(key)) return false; |
|
|
30010 |
1 |
if (!map || HM_IS_RESERVED_KEY(key)) return false; |
|
|
0 |
30010 |
if (!map || HM_IS_RESERVED_KEY(key)) return false; |
|
956
|
50010 |
0 |
if (index >= map->capacity || map->nodes[index].key == HM_EMPTY_KEY) return false; |
|
|
2 |
50008 |
if (index >= map->capacity || map->nodes[index].key == HM_EMPTY_KEY) return false; |
|
|
50015 |
0 |
if (index >= map->capacity || map->nodes[index].key == HM_EMPTY_KEY) return false; |
|
|
3 |
50012 |
if (index >= map->capacity || map->nodes[index].key == HM_EMPTY_KEY) return false; |
|
|
30010 |
0 |
if (index >= map->capacity || map->nodes[index].key == HM_EMPTY_KEY) return false; |
|
|
3 |
30007 |
if (index >= map->capacity || map->nodes[index].key == HM_EMPTY_KEY) return false; |
|
959
|
0 |
50008 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
|
0 |
0 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
|
2 |
50010 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
|
2 |
0 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
|
0 |
30007 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
|
0 |
0 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
960
|
0 |
0 |
(uint32_t)time(NULL) >= map->expires_at[index]) { |
|
|
1 |
1 |
(uint32_t)time(NULL) >= map->expires_at[index]) { |
|
|
0 |
0 |
(uint32_t)time(NULL) >= map->expires_at[index]) { |
|
965
|
0 |
50008 |
if (HM_UNLIKELY(map->lru_prev)) HM_FN(lru_promote)(map, (uint32_t)index); |
|
|
1 |
50010 |
if (HM_UNLIKELY(map->lru_prev)) HM_FN(lru_promote)(map, (uint32_t)index); |
|
|
0 |
30007 |
if (HM_UNLIKELY(map->lru_prev)) HM_FN(lru_promote)(map, (uint32_t)index); |
|
974
|
50026 |
0 |
if (!map || !out_value || HM_IS_RESERVED_KEY(key)) return false; |
|
|
50026 |
0 |
if (!map || !out_value || HM_IS_RESERVED_KEY(key)) return false; |
|
|
50025 |
1 |
if (!map || !out_value || HM_IS_RESERVED_KEY(key)) return false; |
|
|
0 |
50025 |
if (!map || !out_value || HM_IS_RESERVED_KEY(key)) return false; |
|
|
30016 |
0 |
if (!map || !out_value || HM_IS_RESERVED_KEY(key)) return false; |
|
|
30016 |
0 |
if (!map || !out_value || HM_IS_RESERVED_KEY(key)) return false; |
|
|
30016 |
0 |
if (!map || !out_value || HM_IS_RESERVED_KEY(key)) return false; |
|
|
0 |
30016 |
if (!map || !out_value || HM_IS_RESERVED_KEY(key)) return false; |
|
|
50016 |
0 |
if (!map || !out_value || HM_IS_RESERVED_KEY(key)) return false; |
|
|
50016 |
0 |
if (!map || !out_value || HM_IS_RESERVED_KEY(key)) return false; |
|
|
50016 |
0 |
if (!map || !out_value || HM_IS_RESERVED_KEY(key)) return false; |
|
|
0 |
50016 |
if (!map || !out_value || HM_IS_RESERVED_KEY(key)) return false; |
|
977
|
50025 |
0 |
if (index >= map->capacity || map->nodes[index].key == HM_EMPTY_KEY) return false; |
|
|
4 |
50021 |
if (index >= map->capacity || map->nodes[index].key == HM_EMPTY_KEY) return false; |
|
|
30016 |
0 |
if (index >= map->capacity || map->nodes[index].key == HM_EMPTY_KEY) return false; |
|
|
3 |
30013 |
if (index >= map->capacity || map->nodes[index].key == HM_EMPTY_KEY) return false; |
|
|
50016 |
0 |
if (index >= map->capacity || map->nodes[index].key == HM_EMPTY_KEY) return false; |
|
|
3 |
50013 |
if (index >= map->capacity || map->nodes[index].key == HM_EMPTY_KEY) return false; |
|
980
|
2 |
50019 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
|
2 |
0 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
|
1 |
30012 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
|
1 |
0 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
|
1 |
50012 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
|
1 |
0 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
981
|
2 |
0 |
(uint32_t)time(NULL) >= map->expires_at[index]) { |
|
|
1 |
0 |
(uint32_t)time(NULL) >= map->expires_at[index]) { |
|
|
1 |
0 |
(uint32_t)time(NULL) >= map->expires_at[index]) { |
|
986
|
4 |
50015 |
if (HM_UNLIKELY(map->lru_prev)) HM_FN(lru_promote)(map, (uint32_t)index); |
|
|
2 |
30010 |
if (HM_UNLIKELY(map->lru_prev)) HM_FN(lru_promote)(map, (uint32_t)index); |
|
|
2 |
50010 |
if (HM_UNLIKELY(map->lru_prev)) HM_FN(lru_promote)(map, (uint32_t)index); |
|
993
|
100190 |
0 |
if (!map || !out_value || HM_IS_RESERVED_KEY(key)) return false; |
|
|
100190 |
0 |
if (!map || !out_value || HM_IS_RESERVED_KEY(key)) return false; |
|
|
100189 |
1 |
if (!map || !out_value || HM_IS_RESERVED_KEY(key)) return false; |
|
|
0 |
100189 |
if (!map || !out_value || HM_IS_RESERVED_KEY(key)) return false; |
|
|
50010 |
0 |
if (!map || !out_value || HM_IS_RESERVED_KEY(key)) return false; |
|
|
50010 |
0 |
if (!map || !out_value || HM_IS_RESERVED_KEY(key)) return false; |
|
|
50009 |
1 |
if (!map || !out_value || HM_IS_RESERVED_KEY(key)) return false; |
|
|
0 |
50009 |
if (!map || !out_value || HM_IS_RESERVED_KEY(key)) return false; |
|
|
30013 |
0 |
if (!map || !out_value || HM_IS_RESERVED_KEY(key)) return false; |
|
|
30013 |
0 |
if (!map || !out_value || HM_IS_RESERVED_KEY(key)) return false; |
|
|
30012 |
1 |
if (!map || !out_value || HM_IS_RESERVED_KEY(key)) return false; |
|
|
0 |
30012 |
if (!map || !out_value || HM_IS_RESERVED_KEY(key)) return false; |
|
996
|
100189 |
0 |
if (index >= map->capacity || map->nodes[index].key == HM_EMPTY_KEY) return false; |
|
|
15 |
100174 |
if (index >= map->capacity || map->nodes[index].key == HM_EMPTY_KEY) return false; |
|
|
50009 |
0 |
if (index >= map->capacity || map->nodes[index].key == HM_EMPTY_KEY) return false; |
|
|
3 |
50006 |
if (index >= map->capacity || map->nodes[index].key == HM_EMPTY_KEY) return false; |
|
|
30012 |
0 |
if (index >= map->capacity || map->nodes[index].key == HM_EMPTY_KEY) return false; |
|
|
4 |
30008 |
if (index >= map->capacity || map->nodes[index].key == HM_EMPTY_KEY) return false; |
|
999
|
30 |
100144 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
|
25 |
5 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
|
2 |
50004 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
|
2 |
0 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
|
2 |
30006 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
|
2 |
0 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
1000
|
13 |
12 |
(uint32_t)time(NULL) >= map->expires_at[index]) { |
|
|
1 |
1 |
(uint32_t)time(NULL) >= map->expires_at[index]) { |
|
|
1 |
1 |
(uint32_t)time(NULL) >= map->expires_at[index]) { |
|
1005
|
122 |
100039 |
if (HM_UNLIKELY(map->lru_prev)) HM_FN(lru_promote)(map, (uint32_t)index); |
|
|
0 |
50005 |
if (HM_UNLIKELY(map->lru_prev)) HM_FN(lru_promote)(map, (uint32_t)index); |
|
|
0 |
30007 |
if (HM_UNLIKELY(map->lru_prev)) HM_FN(lru_promote)(map, (uint32_t)index); |
|
1018
|
50039 |
0 |
if (!map || !key) return false; |
|
|
0 |
50039 |
if (!map || !key) return false; |
|
1021
|
50039 |
0 |
if (index >= map->capacity || map->nodes[index].key == NULL) return false; |
|
|
5 |
50034 |
if (index >= map->capacity || map->nodes[index].key == NULL) return false; |
|
1024
|
6 |
50028 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
|
3 |
3 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
1025
|
2 |
1 |
(uint32_t)time(NULL) >= map->expires_at[index]) { |
|
1030
|
2 |
50030 |
if (HM_UNLIKELY(map->lru_prev)) HM_FN(lru_promote)(map, (uint32_t)index); |
|
1041
|
50024 |
0 |
if (!map || !key || !out_value) return false; |
|
|
50024 |
0 |
if (!map || !key || !out_value) return false; |
|
|
0 |
50024 |
if (!map || !key || !out_value) return false; |
|
1044
|
50024 |
0 |
if (index >= map->capacity || map->nodes[index].key == NULL) return false; |
|
|
3 |
50021 |
if (index >= map->capacity || map->nodes[index].key == NULL) return false; |
|
1047
|
2 |
50019 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
|
2 |
0 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
1048
|
2 |
0 |
(uint32_t)time(NULL) >= map->expires_at[index]) { |
|
1053
|
2 |
50017 |
if (HM_UNLIKELY(map->lru_prev)) HM_FN(lru_promote)(map, (uint32_t)index); |
|
1062
|
50010 |
0 |
if (!map || !key || !out_value) return false; |
|
|
50010 |
0 |
if (!map || !key || !out_value) return false; |
|
|
0 |
50010 |
if (!map || !key || !out_value) return false; |
|
|
50018 |
0 |
if (!map || !key || !out_value) return false; |
|
|
50018 |
0 |
if (!map || !key || !out_value) return false; |
|
|
0 |
50018 |
if (!map || !key || !out_value) return false; |
|
|
50010 |
0 |
if (!map || !key || !out_value) return false; |
|
|
50010 |
0 |
if (!map || !key || !out_value) return false; |
|
|
0 |
50010 |
if (!map || !key || !out_value) return false; |
|
1065
|
50010 |
0 |
if (index >= map->capacity || map->nodes[index].key == NULL) return false; |
|
|
2 |
50008 |
if (index >= map->capacity || map->nodes[index].key == NULL) return false; |
|
|
50018 |
0 |
if (index >= map->capacity || map->nodes[index].key == NULL) return false; |
|
|
2 |
50016 |
if (index >= map->capacity || map->nodes[index].key == NULL) return false; |
|
|
50010 |
0 |
if (index >= map->capacity || map->nodes[index].key == NULL) return false; |
|
|
2 |
50008 |
if (index >= map->capacity || map->nodes[index].key == NULL) return false; |
|
1068
|
2 |
50006 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
|
2 |
0 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
|
1 |
50015 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
|
1 |
0 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
|
3 |
50005 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
|
3 |
0 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
1069
|
1 |
1 |
(uint32_t)time(NULL) >= map->expires_at[index]) { |
|
|
1 |
0 |
(uint32_t)time(NULL) >= map->expires_at[index]) { |
|
|
2 |
1 |
(uint32_t)time(NULL) >= map->expires_at[index]) { |
|
1074
|
0 |
50007 |
if (HM_UNLIKELY(map->lru_prev)) HM_FN(lru_promote)(map, (uint32_t)index); |
|
|
1 |
50014 |
if (HM_UNLIKELY(map->lru_prev)) HM_FN(lru_promote)(map, (uint32_t)index); |
|
|
1 |
50005 |
if (HM_UNLIKELY(map->lru_prev)) HM_FN(lru_promote)(map, (uint32_t)index); |
|
1088
|
4 |
0 |
if (!map || HM_IS_RESERVED_KEY(key)) return false; |
|
|
4 |
0 |
if (!map || HM_IS_RESERVED_KEY(key)) return false; |
|
|
0 |
4 |
if (!map || HM_IS_RESERVED_KEY(key)) return false; |
|
|
3 |
0 |
if (!map || HM_IS_RESERVED_KEY(key)) return false; |
|
|
3 |
0 |
if (!map || HM_IS_RESERVED_KEY(key)) return false; |
|
|
0 |
3 |
if (!map || HM_IS_RESERVED_KEY(key)) return false; |
|
|
3 |
0 |
if (!map || HM_IS_RESERVED_KEY(key)) return false; |
|
|
3 |
0 |
if (!map || HM_IS_RESERVED_KEY(key)) return false; |
|
|
0 |
3 |
if (!map || HM_IS_RESERVED_KEY(key)) return false; |
|
|
3 |
0 |
if (!map || HM_IS_RESERVED_KEY(key)) return false; |
|
|
2 |
1 |
if (!map || HM_IS_RESERVED_KEY(key)) return false; |
|
|
0 |
2 |
if (!map || HM_IS_RESERVED_KEY(key)) return false; |
|
|
3 |
0 |
if (!map || HM_IS_RESERVED_KEY(key)) return false; |
|
|
2 |
1 |
if (!map || HM_IS_RESERVED_KEY(key)) return false; |
|
|
0 |
2 |
if (!map || HM_IS_RESERVED_KEY(key)) return false; |
|
|
10 |
0 |
if (!map || HM_IS_RESERVED_KEY(key)) return false; |
|
|
9 |
1 |
if (!map || HM_IS_RESERVED_KEY(key)) return false; |
|
|
0 |
9 |
if (!map || HM_IS_RESERVED_KEY(key)) return false; |
|
|
3 |
0 |
if (!map || HM_IS_RESERVED_KEY(key)) return false; |
|
|
2 |
1 |
if (!map || HM_IS_RESERVED_KEY(key)) return false; |
|
|
0 |
2 |
if (!map || HM_IS_RESERVED_KEY(key)) return false; |
|
|
4 |
0 |
if (!map || HM_IS_RESERVED_KEY(key)) return false; |
|
|
3 |
1 |
if (!map || HM_IS_RESERVED_KEY(key)) return false; |
|
|
0 |
3 |
if (!map || HM_IS_RESERVED_KEY(key)) return false; |
|
|
4 |
0 |
if (!map || HM_IS_RESERVED_KEY(key)) return false; |
|
|
3 |
1 |
if (!map || HM_IS_RESERVED_KEY(key)) return false; |
|
|
0 |
3 |
if (!map || HM_IS_RESERVED_KEY(key)) return false; |
|
1090
|
4 |
0 |
if (index >= map->capacity || map->nodes[index].key == HM_EMPTY_KEY) return false; |
|
|
1 |
3 |
if (index >= map->capacity || map->nodes[index].key == HM_EMPTY_KEY) return false; |
|
|
3 |
0 |
if (index >= map->capacity || map->nodes[index].key == HM_EMPTY_KEY) return false; |
|
|
1 |
2 |
if (index >= map->capacity || map->nodes[index].key == HM_EMPTY_KEY) return false; |
|
|
3 |
0 |
if (index >= map->capacity || map->nodes[index].key == HM_EMPTY_KEY) return false; |
|
|
1 |
2 |
if (index >= map->capacity || map->nodes[index].key == HM_EMPTY_KEY) return false; |
|
|
2 |
0 |
if (index >= map->capacity || map->nodes[index].key == HM_EMPTY_KEY) return false; |
|
|
1 |
1 |
if (index >= map->capacity || map->nodes[index].key == HM_EMPTY_KEY) return false; |
|
|
2 |
0 |
if (index >= map->capacity || map->nodes[index].key == HM_EMPTY_KEY) return false; |
|
|
1 |
1 |
if (index >= map->capacity || map->nodes[index].key == HM_EMPTY_KEY) return false; |
|
|
9 |
0 |
if (index >= map->capacity || map->nodes[index].key == HM_EMPTY_KEY) return false; |
|
|
3 |
6 |
if (index >= map->capacity || map->nodes[index].key == HM_EMPTY_KEY) return false; |
|
|
2 |
0 |
if (index >= map->capacity || map->nodes[index].key == HM_EMPTY_KEY) return false; |
|
|
1 |
1 |
if (index >= map->capacity || map->nodes[index].key == HM_EMPTY_KEY) return false; |
|
|
3 |
0 |
if (index >= map->capacity || map->nodes[index].key == HM_EMPTY_KEY) return false; |
|
|
1 |
2 |
if (index >= map->capacity || map->nodes[index].key == HM_EMPTY_KEY) return false; |
|
|
3 |
0 |
if (index >= map->capacity || map->nodes[index].key == HM_EMPTY_KEY) return false; |
|
|
1 |
2 |
if (index >= map->capacity || map->nodes[index].key == HM_EMPTY_KEY) return false; |
|
1093
|
0 |
3 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
|
0 |
0 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
|
0 |
2 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
|
0 |
0 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
|
0 |
2 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
|
0 |
0 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
|
0 |
1 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
|
0 |
0 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
|
0 |
1 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
|
0 |
0 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
|
1 |
5 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
|
1 |
0 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
|
0 |
1 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
|
0 |
0 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
|
0 |
2 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
|
0 |
0 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
|
0 |
2 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
|
0 |
0 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
1094
|
0 |
0 |
(uint32_t)time(NULL) >= map->expires_at[index]) { |
|
|
0 |
0 |
(uint32_t)time(NULL) >= map->expires_at[index]) { |
|
|
0 |
0 |
(uint32_t)time(NULL) >= map->expires_at[index]) { |
|
|
0 |
0 |
(uint32_t)time(NULL) >= map->expires_at[index]) { |
|
|
0 |
0 |
(uint32_t)time(NULL) >= map->expires_at[index]) { |
|
|
0 |
1 |
(uint32_t)time(NULL) >= map->expires_at[index]) { |
|
|
0 |
0 |
(uint32_t)time(NULL) >= map->expires_at[index]) { |
|
|
0 |
0 |
(uint32_t)time(NULL) >= map->expires_at[index]) { |
|
|
0 |
0 |
(uint32_t)time(NULL) >= map->expires_at[index]) { |
|
1105
|
5 |
0 |
if (!map || !key) return false; |
|
|
0 |
5 |
if (!map || !key) return false; |
|
|
2 |
0 |
if (!map || !key) return false; |
|
|
0 |
2 |
if (!map || !key) return false; |
|
|
2 |
0 |
if (!map || !key) return false; |
|
|
0 |
2 |
if (!map || !key) return false; |
|
|
2 |
0 |
if (!map || !key) return false; |
|
|
0 |
2 |
if (!map || !key) return false; |
|
|
4 |
0 |
if (!map || !key) return false; |
|
|
0 |
4 |
if (!map || !key) return false; |
|
1107
|
5 |
0 |
if (index >= map->capacity || map->nodes[index].key == NULL) return false; |
|
|
1 |
4 |
if (index >= map->capacity || map->nodes[index].key == NULL) return false; |
|
|
2 |
0 |
if (index >= map->capacity || map->nodes[index].key == NULL) return false; |
|
|
1 |
1 |
if (index >= map->capacity || map->nodes[index].key == NULL) return false; |
|
|
2 |
0 |
if (index >= map->capacity || map->nodes[index].key == NULL) return false; |
|
|
1 |
1 |
if (index >= map->capacity || map->nodes[index].key == NULL) return false; |
|
|
2 |
0 |
if (index >= map->capacity || map->nodes[index].key == NULL) return false; |
|
|
1 |
1 |
if (index >= map->capacity || map->nodes[index].key == NULL) return false; |
|
|
4 |
0 |
if (index >= map->capacity || map->nodes[index].key == NULL) return false; |
|
|
1 |
3 |
if (index >= map->capacity || map->nodes[index].key == NULL) return false; |
|
1110
|
0 |
4 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
|
0 |
0 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
|
0 |
1 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
|
0 |
0 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
|
0 |
1 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
|
0 |
0 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
|
0 |
1 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
|
0 |
0 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
|
0 |
3 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
|
0 |
0 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
1111
|
0 |
0 |
(uint32_t)time(NULL) >= map->expires_at[index]) { |
|
|
0 |
0 |
(uint32_t)time(NULL) >= map->expires_at[index]) { |
|
|
0 |
0 |
(uint32_t)time(NULL) >= map->expires_at[index]) { |
|
|
0 |
0 |
(uint32_t)time(NULL) >= map->expires_at[index]) { |
|
|
0 |
0 |
(uint32_t)time(NULL) >= map->expires_at[index]) { |
|
1125
|
80505 |
0 |
if (!map || HM_IS_RESERVED_KEY(key)) return false; |
|
|
80505 |
0 |
if (!map || HM_IS_RESERVED_KEY(key)) return false; |
|
|
0 |
80505 |
if (!map || HM_IS_RESERVED_KEY(key)) return false; |
|
|
30005 |
0 |
if (!map || HM_IS_RESERVED_KEY(key)) return false; |
|
|
30005 |
0 |
if (!map || HM_IS_RESERVED_KEY(key)) return false; |
|
|
0 |
30005 |
if (!map || HM_IS_RESERVED_KEY(key)) return false; |
|
|
50005 |
0 |
if (!map || HM_IS_RESERVED_KEY(key)) return false; |
|
|
50005 |
0 |
if (!map || HM_IS_RESERVED_KEY(key)) return false; |
|
|
0 |
50005 |
if (!map || HM_IS_RESERVED_KEY(key)) return false; |
|
|
80006 |
0 |
if (!map || HM_IS_RESERVED_KEY(key)) return false; |
|
|
80005 |
1 |
if (!map || HM_IS_RESERVED_KEY(key)) return false; |
|
|
1 |
80004 |
if (!map || HM_IS_RESERVED_KEY(key)) return false; |
|
|
80106 |
0 |
if (!map || HM_IS_RESERVED_KEY(key)) return false; |
|
|
80105 |
1 |
if (!map || HM_IS_RESERVED_KEY(key)) return false; |
|
|
1 |
80104 |
if (!map || HM_IS_RESERVED_KEY(key)) return false; |
|
|
280022 |
0 |
if (!map || HM_IS_RESERVED_KEY(key)) return false; |
|
|
280021 |
1 |
if (!map || HM_IS_RESERVED_KEY(key)) return false; |
|
|
0 |
280021 |
if (!map || HM_IS_RESERVED_KEY(key)) return false; |
|
|
150004 |
0 |
if (!map || HM_IS_RESERVED_KEY(key)) return false; |
|
|
150003 |
1 |
if (!map || HM_IS_RESERVED_KEY(key)) return false; |
|
|
0 |
150003 |
if (!map || HM_IS_RESERVED_KEY(key)) return false; |
|
|
60006 |
0 |
if (!map || HM_IS_RESERVED_KEY(key)) return false; |
|
|
60005 |
1 |
if (!map || HM_IS_RESERVED_KEY(key)) return false; |
|
|
1 |
60004 |
if (!map || HM_IS_RESERVED_KEY(key)) return false; |
|
|
80007 |
0 |
if (!map || HM_IS_RESERVED_KEY(key)) return false; |
|
|
80006 |
1 |
if (!map || HM_IS_RESERVED_KEY(key)) return false; |
|
|
0 |
80006 |
if (!map || HM_IS_RESERVED_KEY(key)) return false; |
|
1128
|
80505 |
0 |
if (index >= map->capacity || map->nodes[index].key != key) return false; |
|
|
1 |
80504 |
if (index >= map->capacity || map->nodes[index].key != key) return false; |
|
|
30005 |
0 |
if (index >= map->capacity || map->nodes[index].key != key) return false; |
|
|
1 |
30004 |
if (index >= map->capacity || map->nodes[index].key != key) return false; |
|
|
50005 |
0 |
if (index >= map->capacity || map->nodes[index].key != key) return false; |
|
|
1 |
50004 |
if (index >= map->capacity || map->nodes[index].key != key) return false; |
|
|
80004 |
0 |
if (index >= map->capacity || map->nodes[index].key != key) return false; |
|
|
1 |
80003 |
if (index >= map->capacity || map->nodes[index].key != key) return false; |
|
|
80104 |
0 |
if (index >= map->capacity || map->nodes[index].key != key) return false; |
|
|
1 |
80103 |
if (index >= map->capacity || map->nodes[index].key != key) return false; |
|
|
280021 |
0 |
if (index >= map->capacity || map->nodes[index].key != key) return false; |
|
|
1 |
280020 |
if (index >= map->capacity || map->nodes[index].key != key) return false; |
|
|
150003 |
0 |
if (index >= map->capacity || map->nodes[index].key != key) return false; |
|
|
1 |
150002 |
if (index >= map->capacity || map->nodes[index].key != key) return false; |
|
|
60004 |
0 |
if (index >= map->capacity || map->nodes[index].key != key) return false; |
|
|
1 |
60003 |
if (index >= map->capacity || map->nodes[index].key != key) return false; |
|
|
80006 |
0 |
if (index >= map->capacity || map->nodes[index].key != key) return false; |
|
|
1 |
80005 |
if (index >= map->capacity || map->nodes[index].key != key) return false; |
|
1131
|
0 |
80504 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
|
0 |
0 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
|
0 |
30004 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
|
0 |
0 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
|
0 |
50004 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
|
0 |
0 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
|
0 |
80003 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
|
0 |
0 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
|
0 |
80103 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
|
0 |
0 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
|
2 |
280018 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
|
2 |
0 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
|
0 |
150002 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
|
0 |
0 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
|
0 |
60003 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
|
0 |
0 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
|
0 |
80005 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
|
0 |
0 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
1132
|
0 |
0 |
(uint32_t)time(NULL) >= map->expires_at[index]) { |
|
|
0 |
0 |
(uint32_t)time(NULL) >= map->expires_at[index]) { |
|
|
0 |
0 |
(uint32_t)time(NULL) >= map->expires_at[index]) { |
|
|
0 |
0 |
(uint32_t)time(NULL) >= map->expires_at[index]) { |
|
|
0 |
0 |
(uint32_t)time(NULL) >= map->expires_at[index]) { |
|
|
1 |
1 |
(uint32_t)time(NULL) >= map->expires_at[index]) { |
|
|
0 |
0 |
(uint32_t)time(NULL) >= map->expires_at[index]) { |
|
|
0 |
0 |
(uint32_t)time(NULL) >= map->expires_at[index]) { |
|
|
0 |
0 |
(uint32_t)time(NULL) >= map->expires_at[index]) { |
|
1137
|
0 |
80504 |
if (HM_UNLIKELY(map->lru_prev)) HM_FN(lru_unlink)(map, (uint32_t)index); |
|
|
0 |
30004 |
if (HM_UNLIKELY(map->lru_prev)) HM_FN(lru_unlink)(map, (uint32_t)index); |
|
|
0 |
50004 |
if (HM_UNLIKELY(map->lru_prev)) HM_FN(lru_unlink)(map, (uint32_t)index); |
|
|
0 |
80003 |
if (HM_UNLIKELY(map->lru_prev)) HM_FN(lru_unlink)(map, (uint32_t)index); |
|
|
0 |
80103 |
if (HM_UNLIKELY(map->lru_prev)) HM_FN(lru_unlink)(map, (uint32_t)index); |
|
|
5 |
280014 |
if (HM_UNLIKELY(map->lru_prev)) HM_FN(lru_unlink)(map, (uint32_t)index); |
|
|
0 |
150002 |
if (HM_UNLIKELY(map->lru_prev)) HM_FN(lru_unlink)(map, (uint32_t)index); |
|
|
0 |
60003 |
if (HM_UNLIKELY(map->lru_prev)) HM_FN(lru_unlink)(map, (uint32_t)index); |
|
|
0 |
80005 |
if (HM_UNLIKELY(map->lru_prev)) HM_FN(lru_unlink)(map, (uint32_t)index); |
|
1139
|
80501 |
3 |
if (map->tombstones > map->capacity / 4 || |
|
|
30004 |
0 |
if (map->tombstones > map->capacity / 4 || |
|
|
50004 |
0 |
if (map->tombstones > map->capacity / 4 || |
|
|
80000 |
3 |
if (map->tombstones > map->capacity / 4 || |
|
|
80100 |
3 |
if (map->tombstones > map->capacity / 4 || |
|
|
280015 |
4 |
if (map->tombstones > map->capacity / 4 || |
|
|
149997 |
5 |
if (map->tombstones > map->capacity / 4 || |
|
|
60000 |
3 |
if (map->tombstones > map->capacity / 4 || |
|
|
80000 |
5 |
if (map->tombstones > map->capacity / 4 || |
|
1140
|
80486 |
15 |
(map->size > 0 && map->tombstones > map->size)) { |
|
|
87 |
80399 |
(map->size > 0 && map->tombstones > map->size)) { |
|
|
30002 |
2 |
(map->size > 0 && map->tombstones > map->size)) { |
|
|
13 |
29989 |
(map->size > 0 && map->tombstones > map->size)) { |
|
|
50002 |
2 |
(map->size > 0 && map->tombstones > map->size)) { |
|
|
14 |
49988 |
(map->size > 0 && map->tombstones > map->size)) { |
|
|
79996 |
4 |
(map->size > 0 && map->tombstones > map->size)) { |
|
|
47 |
79949 |
(map->size > 0 && map->tombstones > map->size)) { |
|
|
80094 |
6 |
(map->size > 0 && map->tombstones > map->size)) { |
|
|
55 |
80039 |
(map->size > 0 && map->tombstones > map->size)) { |
|
|
280003 |
12 |
(map->size > 0 && map->tombstones > map->size)) { |
|
|
104 |
279899 |
(map->size > 0 && map->tombstones > map->size)) { |
|
|
149989 |
8 |
(map->size > 0 && map->tombstones > map->size)) { |
|
|
74 |
149915 |
(map->size > 0 && map->tombstones > map->size)) { |
|
|
59996 |
4 |
(map->size > 0 && map->tombstones > map->size)) { |
|
|
46 |
59950 |
(map->size > 0 && map->tombstones > map->size)) { |
|
|
79992 |
8 |
(map->size > 0 && map->tombstones > map->size)) { |
|
|
68 |
79924 |
(map->size > 0 && map->tombstones > map->size)) { |
|
1150
|
80505 |
0 |
if (!map || !key) return false; |
|
|
0 |
80505 |
if (!map || !key) return false; |
|
|
80005 |
0 |
if (!map || !key) return false; |
|
|
0 |
80005 |
if (!map || !key) return false; |
|
|
80509 |
0 |
if (!map || !key) return false; |
|
|
0 |
80509 |
if (!map || !key) return false; |
|
|
80006 |
0 |
if (!map || !key) return false; |
|
|
0 |
80006 |
if (!map || !key) return false; |
|
|
80005 |
0 |
if (!map || !key) return false; |
|
|
0 |
80005 |
if (!map || !key) return false; |
|
1153
|
80505 |
0 |
if (index >= map->capacity || map->nodes[index].key == NULL) return false; |
|
|
1 |
80504 |
if (index >= map->capacity || map->nodes[index].key == NULL) return false; |
|
|
80005 |
0 |
if (index >= map->capacity || map->nodes[index].key == NULL) return false; |
|
|
1 |
80004 |
if (index >= map->capacity || map->nodes[index].key == NULL) return false; |
|
|
80509 |
0 |
if (index >= map->capacity || map->nodes[index].key == NULL) return false; |
|
|
1 |
80508 |
if (index >= map->capacity || map->nodes[index].key == NULL) return false; |
|
|
80006 |
0 |
if (index >= map->capacity || map->nodes[index].key == NULL) return false; |
|
|
1 |
80005 |
if (index >= map->capacity || map->nodes[index].key == NULL) return false; |
|
|
80005 |
0 |
if (index >= map->capacity || map->nodes[index].key == NULL) return false; |
|
|
1 |
80004 |
if (index >= map->capacity || map->nodes[index].key == NULL) return false; |
|
1156
|
0 |
80504 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
|
0 |
0 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
|
0 |
80004 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
|
0 |
0 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
|
0 |
80508 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
|
0 |
0 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
|
0 |
80005 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
|
0 |
0 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
|
0 |
80004 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
|
0 |
0 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
1157
|
0 |
0 |
(uint32_t)time(NULL) >= map->expires_at[index]) { |
|
|
0 |
0 |
(uint32_t)time(NULL) >= map->expires_at[index]) { |
|
|
0 |
0 |
(uint32_t)time(NULL) >= map->expires_at[index]) { |
|
|
0 |
0 |
(uint32_t)time(NULL) >= map->expires_at[index]) { |
|
|
0 |
0 |
(uint32_t)time(NULL) >= map->expires_at[index]) { |
|
1162
|
0 |
80504 |
if (HM_UNLIKELY(map->lru_prev)) HM_FN(lru_unlink)(map, (uint32_t)index); |
|
|
0 |
80004 |
if (HM_UNLIKELY(map->lru_prev)) HM_FN(lru_unlink)(map, (uint32_t)index); |
|
|
0 |
80508 |
if (HM_UNLIKELY(map->lru_prev)) HM_FN(lru_unlink)(map, (uint32_t)index); |
|
|
0 |
80005 |
if (HM_UNLIKELY(map->lru_prev)) HM_FN(lru_unlink)(map, (uint32_t)index); |
|
|
0 |
80004 |
if (HM_UNLIKELY(map->lru_prev)) HM_FN(lru_unlink)(map, (uint32_t)index); |
|
1164
|
80501 |
3 |
if (map->tombstones > map->capacity / 4 || |
|
|
80001 |
3 |
if (map->tombstones > map->capacity / 4 || |
|
|
80505 |
3 |
if (map->tombstones > map->capacity / 4 || |
|
|
80002 |
3 |
if (map->tombstones > map->capacity / 4 || |
|
|
80001 |
3 |
if (map->tombstones > map->capacity / 4 || |
|
1165
|
80486 |
15 |
(map->size > 0 && map->tombstones > map->size)) { |
|
|
87 |
80399 |
(map->size > 0 && map->tombstones > map->size)) { |
|
|
79997 |
4 |
(map->size > 0 && map->tombstones > map->size)) { |
|
|
47 |
79950 |
(map->size > 0 && map->tombstones > map->size)) { |
|
|
80490 |
15 |
(map->size > 0 && map->tombstones > map->size)) { |
|
|
87 |
80403 |
(map->size > 0 && map->tombstones > map->size)) { |
|
|
79997 |
5 |
(map->size > 0 && map->tombstones > map->size)) { |
|
|
47 |
79950 |
(map->size > 0 && map->tombstones > map->size)) { |
|
|
79996 |
5 |
(map->size > 0 && map->tombstones > map->size)) { |
|
|
47 |
79949 |
(map->size > 0 && map->tombstones > map->size)) { |
|
1180
|
1 |
0 |
if (!map || HM_IS_RESERVED_KEY(key)) return false; |
|
|
1 |
0 |
if (!map || HM_IS_RESERVED_KEY(key)) return false; |
|
|
0 |
1 |
if (!map || HM_IS_RESERVED_KEY(key)) return false; |
|
|
1 |
0 |
if (!map || HM_IS_RESERVED_KEY(key)) return false; |
|
|
1 |
0 |
if (!map || HM_IS_RESERVED_KEY(key)) return false; |
|
|
0 |
1 |
if (!map || HM_IS_RESERVED_KEY(key)) return false; |
|
|
1 |
0 |
if (!map || HM_IS_RESERVED_KEY(key)) return false; |
|
|
1 |
0 |
if (!map || HM_IS_RESERVED_KEY(key)) return false; |
|
|
0 |
1 |
if (!map || HM_IS_RESERVED_KEY(key)) return false; |
|
1183
|
1 |
0 |
if (index >= map->capacity || map->nodes[index].key != key) return false; |
|
|
0 |
1 |
if (index >= map->capacity || map->nodes[index].key != key) return false; |
|
|
1 |
0 |
if (index >= map->capacity || map->nodes[index].key != key) return false; |
|
|
0 |
1 |
if (index >= map->capacity || map->nodes[index].key != key) return false; |
|
|
1 |
0 |
if (index >= map->capacity || map->nodes[index].key != key) return false; |
|
|
0 |
1 |
if (index >= map->capacity || map->nodes[index].key != key) return false; |
|
1185
|
0 |
1 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
|
0 |
0 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
|
0 |
1 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
|
0 |
0 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
|
0 |
1 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
|
0 |
0 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
1186
|
0 |
0 |
(uint32_t)time(NULL) >= map->expires_at[index]) { |
|
|
0 |
0 |
(uint32_t)time(NULL) >= map->expires_at[index]) { |
|
|
0 |
0 |
(uint32_t)time(NULL) >= map->expires_at[index]) { |
|
1196
|
0 |
1 |
if (HM_UNLIKELY(map->lru_prev)) HM_FN(lru_unlink)(map, (uint32_t)index); |
|
|
0 |
1 |
if (HM_UNLIKELY(map->lru_prev)) HM_FN(lru_unlink)(map, (uint32_t)index); |
|
|
0 |
1 |
if (HM_UNLIKELY(map->lru_prev)) HM_FN(lru_unlink)(map, (uint32_t)index); |
|
1198
|
1 |
0 |
if (map->tombstones > map->capacity / 4 || |
|
|
1 |
0 |
if (map->tombstones > map->capacity / 4 || |
|
|
1 |
0 |
if (map->tombstones > map->capacity / 4 || |
|
1199
|
0 |
1 |
(map->size > 0 && map->tombstones > map->size)) |
|
|
0 |
0 |
(map->size > 0 && map->tombstones > map->size)) |
|
|
0 |
1 |
(map->size > 0 && map->tombstones > map->size)) |
|
|
0 |
0 |
(map->size > 0 && map->tombstones > map->size)) |
|
|
0 |
1 |
(map->size > 0 && map->tombstones > map->size)) |
|
|
0 |
0 |
(map->size > 0 && map->tombstones > map->size)) |
|
1205
|
2 |
0 |
if (!map || !out_value || HM_IS_RESERVED_KEY(key)) return false; |
|
|
2 |
0 |
if (!map || !out_value || HM_IS_RESERVED_KEY(key)) return false; |
|
|
2 |
0 |
if (!map || !out_value || HM_IS_RESERVED_KEY(key)) return false; |
|
|
0 |
2 |
if (!map || !out_value || HM_IS_RESERVED_KEY(key)) return false; |
|
|
1 |
0 |
if (!map || !out_value || HM_IS_RESERVED_KEY(key)) return false; |
|
|
1 |
0 |
if (!map || !out_value || HM_IS_RESERVED_KEY(key)) return false; |
|
|
1 |
0 |
if (!map || !out_value || HM_IS_RESERVED_KEY(key)) return false; |
|
|
0 |
1 |
if (!map || !out_value || HM_IS_RESERVED_KEY(key)) return false; |
|
|
1 |
0 |
if (!map || !out_value || HM_IS_RESERVED_KEY(key)) return false; |
|
|
1 |
0 |
if (!map || !out_value || HM_IS_RESERVED_KEY(key)) return false; |
|
|
1 |
0 |
if (!map || !out_value || HM_IS_RESERVED_KEY(key)) return false; |
|
|
0 |
1 |
if (!map || !out_value || HM_IS_RESERVED_KEY(key)) return false; |
|
1208
|
2 |
0 |
if (index >= map->capacity || map->nodes[index].key != key) return false; |
|
|
1 |
1 |
if (index >= map->capacity || map->nodes[index].key != key) return false; |
|
|
1 |
0 |
if (index >= map->capacity || map->nodes[index].key != key) return false; |
|
|
0 |
1 |
if (index >= map->capacity || map->nodes[index].key != key) return false; |
|
|
1 |
0 |
if (index >= map->capacity || map->nodes[index].key != key) return false; |
|
|
0 |
1 |
if (index >= map->capacity || map->nodes[index].key != key) return false; |
|
1210
|
0 |
1 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
|
0 |
0 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
|
0 |
1 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
|
0 |
0 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
|
0 |
1 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
|
0 |
0 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
1211
|
0 |
0 |
(uint32_t)time(NULL) >= map->expires_at[index]) { |
|
|
0 |
0 |
(uint32_t)time(NULL) >= map->expires_at[index]) { |
|
|
0 |
0 |
(uint32_t)time(NULL) >= map->expires_at[index]) { |
|
1219
|
0 |
1 |
if (HM_UNLIKELY(map->lru_prev)) HM_FN(lru_unlink)(map, (uint32_t)index); |
|
|
0 |
1 |
if (HM_UNLIKELY(map->lru_prev)) HM_FN(lru_unlink)(map, (uint32_t)index); |
|
|
0 |
1 |
if (HM_UNLIKELY(map->lru_prev)) HM_FN(lru_unlink)(map, (uint32_t)index); |
|
1221
|
1 |
0 |
if (map->tombstones > map->capacity / 4 || |
|
|
1 |
0 |
if (map->tombstones > map->capacity / 4 || |
|
|
1 |
0 |
if (map->tombstones > map->capacity / 4 || |
|
1222
|
0 |
1 |
(map->size > 0 && map->tombstones > map->size)) |
|
|
0 |
0 |
(map->size > 0 && map->tombstones > map->size)) |
|
|
0 |
1 |
(map->size > 0 && map->tombstones > map->size)) |
|
|
0 |
0 |
(map->size > 0 && map->tombstones > map->size)) |
|
|
0 |
1 |
(map->size > 0 && map->tombstones > map->size)) |
|
|
0 |
0 |
(map->size > 0 && map->tombstones > map->size)) |
|
1228
|
3 |
0 |
if (!map || !out_value || HM_IS_RESERVED_KEY(key)) return false; |
|
|
3 |
0 |
if (!map || !out_value || HM_IS_RESERVED_KEY(key)) return false; |
|
|
3 |
0 |
if (!map || !out_value || HM_IS_RESERVED_KEY(key)) return false; |
|
|
0 |
3 |
if (!map || !out_value || HM_IS_RESERVED_KEY(key)) return false; |
|
|
2 |
0 |
if (!map || !out_value || HM_IS_RESERVED_KEY(key)) return false; |
|
|
2 |
0 |
if (!map || !out_value || HM_IS_RESERVED_KEY(key)) return false; |
|
|
2 |
0 |
if (!map || !out_value || HM_IS_RESERVED_KEY(key)) return false; |
|
|
0 |
2 |
if (!map || !out_value || HM_IS_RESERVED_KEY(key)) return false; |
|
|
2 |
0 |
if (!map || !out_value || HM_IS_RESERVED_KEY(key)) return false; |
|
|
2 |
0 |
if (!map || !out_value || HM_IS_RESERVED_KEY(key)) return false; |
|
|
2 |
0 |
if (!map || !out_value || HM_IS_RESERVED_KEY(key)) return false; |
|
|
0 |
2 |
if (!map || !out_value || HM_IS_RESERVED_KEY(key)) return false; |
|
1231
|
3 |
0 |
if (index >= map->capacity || map->nodes[index].key != key) return false; |
|
|
1 |
2 |
if (index >= map->capacity || map->nodes[index].key != key) return false; |
|
|
2 |
0 |
if (index >= map->capacity || map->nodes[index].key != key) return false; |
|
|
0 |
2 |
if (index >= map->capacity || map->nodes[index].key != key) return false; |
|
|
2 |
0 |
if (index >= map->capacity || map->nodes[index].key != key) return false; |
|
|
0 |
2 |
if (index >= map->capacity || map->nodes[index].key != key) return false; |
|
1233
|
1 |
1 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
|
1 |
0 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
|
0 |
2 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
|
0 |
0 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
|
0 |
2 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
|
0 |
0 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
1234
|
1 |
0 |
(uint32_t)time(NULL) >= map->expires_at[index]) { |
|
|
0 |
0 |
(uint32_t)time(NULL) >= map->expires_at[index]) { |
|
|
0 |
0 |
(uint32_t)time(NULL) >= map->expires_at[index]) { |
|
1241
|
0 |
1 |
if (HM_UNLIKELY(map->lru_prev)) HM_FN(lru_unlink)(map, (uint32_t)index); |
|
|
0 |
2 |
if (HM_UNLIKELY(map->lru_prev)) HM_FN(lru_unlink)(map, (uint32_t)index); |
|
|
0 |
2 |
if (HM_UNLIKELY(map->lru_prev)) HM_FN(lru_unlink)(map, (uint32_t)index); |
|
1243
|
1 |
0 |
if (map->tombstones > map->capacity / 4 || |
|
|
2 |
0 |
if (map->tombstones > map->capacity / 4 || |
|
|
2 |
0 |
if (map->tombstones > map->capacity / 4 || |
|
1244
|
0 |
1 |
(map->size > 0 && map->tombstones > map->size)) |
|
|
0 |
0 |
(map->size > 0 && map->tombstones > map->size)) |
|
|
1 |
1 |
(map->size > 0 && map->tombstones > map->size)) |
|
|
0 |
1 |
(map->size > 0 && map->tombstones > map->size)) |
|
|
1 |
1 |
(map->size > 0 && map->tombstones > map->size)) |
|
|
0 |
1 |
(map->size > 0 && map->tombstones > map->size)) |
|
1256
|
1 |
0 |
if (!map || !key) return false; |
|
|
0 |
1 |
if (!map || !key) return false; |
|
1259
|
1 |
0 |
if (index >= map->capacity || map->nodes[index].key == NULL) return false; |
|
|
0 |
1 |
if (index >= map->capacity || map->nodes[index].key == NULL) return false; |
|
1261
|
0 |
1 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
|
0 |
0 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
1262
|
0 |
0 |
(uint32_t)time(NULL) >= map->expires_at[index]) { |
|
1272
|
0 |
1 |
if (HM_UNLIKELY(map->lru_prev)) HM_FN(lru_unlink)(map, (uint32_t)index); |
|
1274
|
1 |
0 |
if (map->tombstones > map->capacity / 4 || |
|
1275
|
0 |
1 |
(map->size > 0 && map->tombstones > map->size)) |
|
|
0 |
0 |
(map->size > 0 && map->tombstones > map->size)) |
|
1283
|
1 |
0 |
if (!map || !key || !out_value) return false; |
|
|
1 |
0 |
if (!map || !key || !out_value) return false; |
|
|
0 |
1 |
if (!map || !key || !out_value) return false; |
|
1286
|
1 |
0 |
if (index >= map->capacity || map->nodes[index].key == NULL) return false; |
|
|
0 |
1 |
if (index >= map->capacity || map->nodes[index].key == NULL) return false; |
|
1288
|
0 |
1 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
|
0 |
0 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
1289
|
0 |
0 |
(uint32_t)time(NULL) >= map->expires_at[index]) { |
|
1297
|
0 |
1 |
if (HM_UNLIKELY(map->lru_prev)) HM_FN(lru_unlink)(map, (uint32_t)index); |
|
1299
|
1 |
0 |
if (map->tombstones > map->capacity / 4 || |
|
1300
|
0 |
1 |
(map->size > 0 && map->tombstones > map->size)) |
|
|
0 |
0 |
(map->size > 0 && map->tombstones > map->size)) |
|
1308
|
1 |
0 |
if (!map || !key || !out_value) return false; |
|
|
1 |
0 |
if (!map || !key || !out_value) return false; |
|
|
0 |
1 |
if (!map || !key || !out_value) return false; |
|
|
1 |
0 |
if (!map || !key || !out_value) return false; |
|
|
1 |
0 |
if (!map || !key || !out_value) return false; |
|
|
0 |
1 |
if (!map || !key || !out_value) return false; |
|
|
1 |
0 |
if (!map || !key || !out_value) return false; |
|
|
1 |
0 |
if (!map || !key || !out_value) return false; |
|
|
0 |
1 |
if (!map || !key || !out_value) return false; |
|
1311
|
1 |
0 |
if (index >= map->capacity || map->nodes[index].key == NULL) return false; |
|
|
0 |
1 |
if (index >= map->capacity || map->nodes[index].key == NULL) return false; |
|
|
1 |
0 |
if (index >= map->capacity || map->nodes[index].key == NULL) return false; |
|
|
0 |
1 |
if (index >= map->capacity || map->nodes[index].key == NULL) return false; |
|
|
1 |
0 |
if (index >= map->capacity || map->nodes[index].key == NULL) return false; |
|
|
0 |
1 |
if (index >= map->capacity || map->nodes[index].key == NULL) return false; |
|
1313
|
0 |
1 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
|
0 |
0 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
|
0 |
1 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
|
0 |
0 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
|
0 |
1 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
|
0 |
0 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
1314
|
0 |
0 |
(uint32_t)time(NULL) >= map->expires_at[index]) { |
|
|
0 |
0 |
(uint32_t)time(NULL) >= map->expires_at[index]) { |
|
|
0 |
0 |
(uint32_t)time(NULL) >= map->expires_at[index]) { |
|
1321
|
0 |
1 |
if (HM_UNLIKELY(map->lru_prev)) HM_FN(lru_unlink)(map, (uint32_t)index); |
|
|
0 |
1 |
if (HM_UNLIKELY(map->lru_prev)) HM_FN(lru_unlink)(map, (uint32_t)index); |
|
|
0 |
1 |
if (HM_UNLIKELY(map->lru_prev)) HM_FN(lru_unlink)(map, (uint32_t)index); |
|
1323
|
1 |
0 |
if (map->tombstones > map->capacity / 4 || |
|
|
1 |
0 |
if (map->tombstones > map->capacity / 4 || |
|
|
1 |
0 |
if (map->tombstones > map->capacity / 4 || |
|
1324
|
0 |
1 |
(map->size > 0 && map->tombstones > map->size)) |
|
|
0 |
0 |
(map->size > 0 && map->tombstones > map->size)) |
|
|
0 |
1 |
(map->size > 0 && map->tombstones > map->size)) |
|
|
0 |
0 |
(map->size > 0 && map->tombstones > map->size)) |
|
|
0 |
1 |
(map->size > 0 && map->tombstones > map->size)) |
|
|
0 |
0 |
(map->size > 0 && map->tombstones > map->size)) |
|
1336
|
0 |
0 |
if (!map || HM_IS_RESERVED_KEY(key)) return false; |
|
|
0 |
0 |
if (!map || HM_IS_RESERVED_KEY(key)) return false; |
|
|
0 |
0 |
if (!map || HM_IS_RESERVED_KEY(key)) return false; |
|
|
0 |
0 |
if (!map || HM_IS_RESERVED_KEY(key)) return false; |
|
|
0 |
0 |
if (!map || HM_IS_RESERVED_KEY(key)) return false; |
|
|
0 |
0 |
if (!map || HM_IS_RESERVED_KEY(key)) return false; |
|
|
0 |
0 |
if (!map || HM_IS_RESERVED_KEY(key)) return false; |
|
|
0 |
0 |
if (!map || HM_IS_RESERVED_KEY(key)) return false; |
|
|
0 |
0 |
if (!map || HM_IS_RESERVED_KEY(key)) return false; |
|
|
0 |
0 |
if (!map || HM_IS_RESERVED_KEY(key)) return false; |
|
|
0 |
0 |
if (!map || HM_IS_RESERVED_KEY(key)) return false; |
|
|
0 |
0 |
if (!map || HM_IS_RESERVED_KEY(key)) return false; |
|
|
0 |
0 |
if (!map || HM_IS_RESERVED_KEY(key)) return false; |
|
|
0 |
0 |
if (!map || HM_IS_RESERVED_KEY(key)) return false; |
|
|
0 |
0 |
if (!map || HM_IS_RESERVED_KEY(key)) return false; |
|
|
2 |
0 |
if (!map || HM_IS_RESERVED_KEY(key)) return false; |
|
|
2 |
0 |
if (!map || HM_IS_RESERVED_KEY(key)) return false; |
|
|
0 |
2 |
if (!map || HM_IS_RESERVED_KEY(key)) return false; |
|
|
0 |
0 |
if (!map || HM_IS_RESERVED_KEY(key)) return false; |
|
|
0 |
0 |
if (!map || HM_IS_RESERVED_KEY(key)) return false; |
|
|
0 |
0 |
if (!map || HM_IS_RESERVED_KEY(key)) return false; |
|
|
0 |
0 |
if (!map || HM_IS_RESERVED_KEY(key)) return false; |
|
|
0 |
0 |
if (!map || HM_IS_RESERVED_KEY(key)) return false; |
|
|
0 |
0 |
if (!map || HM_IS_RESERVED_KEY(key)) return false; |
|
|
0 |
0 |
if (!map || HM_IS_RESERVED_KEY(key)) return false; |
|
|
0 |
0 |
if (!map || HM_IS_RESERVED_KEY(key)) return false; |
|
|
0 |
0 |
if (!map || HM_IS_RESERVED_KEY(key)) return false; |
|
1338
|
0 |
0 |
if (index >= map->capacity || map->nodes[index].key == HM_EMPTY_KEY) return false; |
|
|
0 |
0 |
if (index >= map->capacity || map->nodes[index].key == HM_EMPTY_KEY) return false; |
|
|
0 |
0 |
if (index >= map->capacity || map->nodes[index].key == HM_EMPTY_KEY) return false; |
|
|
0 |
0 |
if (index >= map->capacity || map->nodes[index].key == HM_EMPTY_KEY) return false; |
|
|
0 |
0 |
if (index >= map->capacity || map->nodes[index].key == HM_EMPTY_KEY) return false; |
|
|
0 |
0 |
if (index >= map->capacity || map->nodes[index].key == HM_EMPTY_KEY) return false; |
|
|
0 |
0 |
if (index >= map->capacity || map->nodes[index].key == HM_EMPTY_KEY) return false; |
|
|
0 |
0 |
if (index >= map->capacity || map->nodes[index].key == HM_EMPTY_KEY) return false; |
|
|
0 |
0 |
if (index >= map->capacity || map->nodes[index].key == HM_EMPTY_KEY) return false; |
|
|
0 |
0 |
if (index >= map->capacity || map->nodes[index].key == HM_EMPTY_KEY) return false; |
|
|
2 |
0 |
if (index >= map->capacity || map->nodes[index].key == HM_EMPTY_KEY) return false; |
|
|
0 |
2 |
if (index >= map->capacity || map->nodes[index].key == HM_EMPTY_KEY) return false; |
|
|
0 |
0 |
if (index >= map->capacity || map->nodes[index].key == HM_EMPTY_KEY) return false; |
|
|
0 |
0 |
if (index >= map->capacity || map->nodes[index].key == HM_EMPTY_KEY) return false; |
|
|
0 |
0 |
if (index >= map->capacity || map->nodes[index].key == HM_EMPTY_KEY) return false; |
|
|
0 |
0 |
if (index >= map->capacity || map->nodes[index].key == HM_EMPTY_KEY) return false; |
|
|
0 |
0 |
if (index >= map->capacity || map->nodes[index].key == HM_EMPTY_KEY) return false; |
|
|
0 |
0 |
if (index >= map->capacity || map->nodes[index].key == HM_EMPTY_KEY) return false; |
|
1340
|
0 |
0 |
if (map->expires_at && map->expires_at[index] && |
|
|
0 |
0 |
if (map->expires_at && map->expires_at[index] && |
|
|
0 |
0 |
if (map->expires_at && map->expires_at[index] && |
|
|
0 |
0 |
if (map->expires_at && map->expires_at[index] && |
|
|
0 |
0 |
if (map->expires_at && map->expires_at[index] && |
|
|
0 |
0 |
if (map->expires_at && map->expires_at[index] && |
|
|
0 |
0 |
if (map->expires_at && map->expires_at[index] && |
|
|
0 |
0 |
if (map->expires_at && map->expires_at[index] && |
|
|
0 |
0 |
if (map->expires_at && map->expires_at[index] && |
|
|
0 |
0 |
if (map->expires_at && map->expires_at[index] && |
|
|
2 |
0 |
if (map->expires_at && map->expires_at[index] && |
|
|
2 |
0 |
if (map->expires_at && map->expires_at[index] && |
|
|
0 |
0 |
if (map->expires_at && map->expires_at[index] && |
|
|
0 |
0 |
if (map->expires_at && map->expires_at[index] && |
|
|
0 |
0 |
if (map->expires_at && map->expires_at[index] && |
|
|
0 |
0 |
if (map->expires_at && map->expires_at[index] && |
|
|
0 |
0 |
if (map->expires_at && map->expires_at[index] && |
|
|
0 |
0 |
if (map->expires_at && map->expires_at[index] && |
|
1341
|
0 |
0 |
(uint32_t)time(NULL) >= map->expires_at[index]) { |
|
|
0 |
0 |
(uint32_t)time(NULL) >= map->expires_at[index]) { |
|
|
0 |
0 |
(uint32_t)time(NULL) >= map->expires_at[index]) { |
|
|
0 |
0 |
(uint32_t)time(NULL) >= map->expires_at[index]) { |
|
|
0 |
0 |
(uint32_t)time(NULL) >= map->expires_at[index]) { |
|
|
1 |
1 |
(uint32_t)time(NULL) >= map->expires_at[index]) { |
|
|
0 |
0 |
(uint32_t)time(NULL) >= map->expires_at[index]) { |
|
|
0 |
0 |
(uint32_t)time(NULL) >= map->expires_at[index]) { |
|
|
0 |
0 |
(uint32_t)time(NULL) >= map->expires_at[index]) { |
|
1345
|
0 |
0 |
if (map->expires_at) map->expires_at[index] = 0; |
|
|
0 |
0 |
if (map->expires_at) map->expires_at[index] = 0; |
|
|
0 |
0 |
if (map->expires_at) map->expires_at[index] = 0; |
|
|
0 |
0 |
if (map->expires_at) map->expires_at[index] = 0; |
|
|
0 |
0 |
if (map->expires_at) map->expires_at[index] = 0; |
|
|
1 |
0 |
if (map->expires_at) map->expires_at[index] = 0; |
|
|
0 |
0 |
if (map->expires_at) map->expires_at[index] = 0; |
|
|
0 |
0 |
if (map->expires_at) map->expires_at[index] = 0; |
|
|
0 |
0 |
if (map->expires_at) map->expires_at[index] = 0; |
|
1351
|
0 |
0 |
if (!map || !key) return false; |
|
|
0 |
0 |
if (!map || !key) return false; |
|
|
0 |
0 |
if (!map || !key) return false; |
|
|
0 |
0 |
if (!map || !key) return false; |
|
|
1 |
0 |
if (!map || !key) return false; |
|
|
0 |
1 |
if (!map || !key) return false; |
|
|
0 |
0 |
if (!map || !key) return false; |
|
|
0 |
0 |
if (!map || !key) return false; |
|
|
0 |
0 |
if (!map || !key) return false; |
|
|
0 |
0 |
if (!map || !key) return false; |
|
1353
|
0 |
0 |
if (index >= map->capacity || map->nodes[index].key == NULL) return false; |
|
|
0 |
0 |
if (index >= map->capacity || map->nodes[index].key == NULL) return false; |
|
|
0 |
0 |
if (index >= map->capacity || map->nodes[index].key == NULL) return false; |
|
|
0 |
0 |
if (index >= map->capacity || map->nodes[index].key == NULL) return false; |
|
|
1 |
0 |
if (index >= map->capacity || map->nodes[index].key == NULL) return false; |
|
|
0 |
1 |
if (index >= map->capacity || map->nodes[index].key == NULL) return false; |
|
|
0 |
0 |
if (index >= map->capacity || map->nodes[index].key == NULL) return false; |
|
|
0 |
0 |
if (index >= map->capacity || map->nodes[index].key == NULL) return false; |
|
|
0 |
0 |
if (index >= map->capacity || map->nodes[index].key == NULL) return false; |
|
|
0 |
0 |
if (index >= map->capacity || map->nodes[index].key == NULL) return false; |
|
1355
|
0 |
0 |
if (map->expires_at && map->expires_at[index] && |
|
|
0 |
0 |
if (map->expires_at && map->expires_at[index] && |
|
|
0 |
0 |
if (map->expires_at && map->expires_at[index] && |
|
|
0 |
0 |
if (map->expires_at && map->expires_at[index] && |
|
|
1 |
0 |
if (map->expires_at && map->expires_at[index] && |
|
|
1 |
0 |
if (map->expires_at && map->expires_at[index] && |
|
|
0 |
0 |
if (map->expires_at && map->expires_at[index] && |
|
|
0 |
0 |
if (map->expires_at && map->expires_at[index] && |
|
|
0 |
0 |
if (map->expires_at && map->expires_at[index] && |
|
|
0 |
0 |
if (map->expires_at && map->expires_at[index] && |
|
1356
|
0 |
0 |
(uint32_t)time(NULL) >= map->expires_at[index]) { |
|
|
0 |
0 |
(uint32_t)time(NULL) >= map->expires_at[index]) { |
|
|
0 |
1 |
(uint32_t)time(NULL) >= map->expires_at[index]) { |
|
|
0 |
0 |
(uint32_t)time(NULL) >= map->expires_at[index]) { |
|
|
0 |
0 |
(uint32_t)time(NULL) >= map->expires_at[index]) { |
|
1360
|
0 |
0 |
if (map->expires_at) map->expires_at[index] = 0; |
|
|
0 |
0 |
if (map->expires_at) map->expires_at[index] = 0; |
|
|
1 |
0 |
if (map->expires_at) map->expires_at[index] = 0; |
|
|
0 |
0 |
if (map->expires_at) map->expires_at[index] = 0; |
|
|
0 |
0 |
if (map->expires_at) map->expires_at[index] = 0; |
|
1373
|
0 |
0 |
if (!map || HM_IS_RESERVED_KEY(key)) return false; |
|
|
0 |
0 |
if (!map || HM_IS_RESERVED_KEY(key)) return false; |
|
|
0 |
0 |
if (!map || HM_IS_RESERVED_KEY(key)) return false; |
|
|
0 |
0 |
if (!map || HM_IS_RESERVED_KEY(key)) return false; |
|
|
0 |
0 |
if (!map || HM_IS_RESERVED_KEY(key)) return false; |
|
|
0 |
0 |
if (!map || HM_IS_RESERVED_KEY(key)) return false; |
|
|
0 |
0 |
if (!map || HM_IS_RESERVED_KEY(key)) return false; |
|
|
0 |
0 |
if (!map || HM_IS_RESERVED_KEY(key)) return false; |
|
|
0 |
0 |
if (!map || HM_IS_RESERVED_KEY(key)) return false; |
|
1375
|
0 |
0 |
if (index >= map->capacity || map->nodes[index].key != key) return false; |
|
|
0 |
0 |
if (index >= map->capacity || map->nodes[index].key != key) return false; |
|
|
0 |
0 |
if (index >= map->capacity || map->nodes[index].key != key) return false; |
|
|
0 |
0 |
if (index >= map->capacity || map->nodes[index].key != key) return false; |
|
|
0 |
0 |
if (index >= map->capacity || map->nodes[index].key != key) return false; |
|
|
0 |
0 |
if (index >= map->capacity || map->nodes[index].key != key) return false; |
|
1376
|
0 |
0 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
|
0 |
0 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
|
0 |
0 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
|
0 |
0 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
|
0 |
0 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
|
0 |
0 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
1377
|
0 |
0 |
(uint32_t)time(NULL) >= map->expires_at[index]) { |
|
|
0 |
0 |
(uint32_t)time(NULL) >= map->expires_at[index]) { |
|
|
0 |
0 |
(uint32_t)time(NULL) >= map->expires_at[index]) { |
|
1386
|
0 |
0 |
if (new_val && new_len > 0) { |
|
|
0 |
0 |
if (new_val && new_len > 0) { |
|
|
0 |
0 |
if (new_val && new_len > 0) { |
|
|
0 |
0 |
if (new_val && new_len > 0) { |
|
|
0 |
0 |
if (new_val && new_len > 0) { |
|
|
0 |
0 |
if (new_val && new_len > 0) { |
|
1388
|
0 |
0 |
if (!buf) return false; |
|
|
0 |
0 |
if (!buf) return false; |
|
|
0 |
0 |
if (!buf) return false; |
|
1392
|
0 |
0 |
} else if (new_val) { |
|
|
0 |
0 |
} else if (new_val) { |
|
|
0 |
0 |
} else if (new_val) { |
|
1394
|
0 |
0 |
if (!buf) return false; |
|
|
0 |
0 |
if (!buf) return false; |
|
|
0 |
0 |
if (!buf) return false; |
|
1400
|
0 |
0 |
map->nodes[index].val_len = HM_PACK_LEN(new_len, new_utf8); |
|
|
0 |
0 |
map->nodes[index].val_len = HM_PACK_LEN(new_len, new_utf8); |
|
|
0 |
0 |
map->nodes[index].val_len = HM_PACK_LEN(new_len, new_utf8); |
|
1401
|
0 |
0 |
if (HM_UNLIKELY(map->lru_prev)) HM_FN(lru_promote)(map, (uint32_t)index); |
|
|
0 |
0 |
if (HM_UNLIKELY(map->lru_prev)) HM_FN(lru_promote)(map, (uint32_t)index); |
|
|
0 |
0 |
if (HM_UNLIKELY(map->lru_prev)) HM_FN(lru_promote)(map, (uint32_t)index); |
|
1407
|
2 |
0 |
if (!map || !out_old || HM_IS_RESERVED_KEY(key)) return false; |
|
|
2 |
0 |
if (!map || !out_old || HM_IS_RESERVED_KEY(key)) return false; |
|
|
2 |
0 |
if (!map || !out_old || HM_IS_RESERVED_KEY(key)) return false; |
|
|
0 |
2 |
if (!map || !out_old || HM_IS_RESERVED_KEY(key)) return false; |
|
|
0 |
0 |
if (!map || !out_old || HM_IS_RESERVED_KEY(key)) return false; |
|
|
0 |
0 |
if (!map || !out_old || HM_IS_RESERVED_KEY(key)) return false; |
|
|
0 |
0 |
if (!map || !out_old || HM_IS_RESERVED_KEY(key)) return false; |
|
|
0 |
0 |
if (!map || !out_old || HM_IS_RESERVED_KEY(key)) return false; |
|
|
0 |
0 |
if (!map || !out_old || HM_IS_RESERVED_KEY(key)) return false; |
|
|
0 |
0 |
if (!map || !out_old || HM_IS_RESERVED_KEY(key)) return false; |
|
|
0 |
0 |
if (!map || !out_old || HM_IS_RESERVED_KEY(key)) return false; |
|
|
0 |
0 |
if (!map || !out_old || HM_IS_RESERVED_KEY(key)) return false; |
|
1409
|
2 |
0 |
if (index >= map->capacity || map->nodes[index].key != key) return false; |
|
|
1 |
1 |
if (index >= map->capacity || map->nodes[index].key != key) return false; |
|
|
0 |
0 |
if (index >= map->capacity || map->nodes[index].key != key) return false; |
|
|
0 |
0 |
if (index >= map->capacity || map->nodes[index].key != key) return false; |
|
|
0 |
0 |
if (index >= map->capacity || map->nodes[index].key != key) return false; |
|
|
0 |
0 |
if (index >= map->capacity || map->nodes[index].key != key) return false; |
|
1410
|
0 |
1 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
|
0 |
0 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
|
0 |
0 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
|
0 |
0 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
|
0 |
0 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
|
0 |
0 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
1411
|
0 |
0 |
(uint32_t)time(NULL) >= map->expires_at[index]) { |
|
|
0 |
0 |
(uint32_t)time(NULL) >= map->expires_at[index]) { |
|
|
0 |
0 |
(uint32_t)time(NULL) >= map->expires_at[index]) { |
|
1417
|
0 |
1 |
if (HM_UNLIKELY(map->lru_prev)) HM_FN(lru_promote)(map, (uint32_t)index); |
|
|
0 |
0 |
if (HM_UNLIKELY(map->lru_prev)) HM_FN(lru_promote)(map, (uint32_t)index); |
|
|
0 |
0 |
if (HM_UNLIKELY(map->lru_prev)) HM_FN(lru_promote)(map, (uint32_t)index); |
|
1423
|
2 |
0 |
if (!map || !out_old || HM_IS_RESERVED_KEY(key)) return false; |
|
|
2 |
0 |
if (!map || !out_old || HM_IS_RESERVED_KEY(key)) return false; |
|
|
2 |
0 |
if (!map || !out_old || HM_IS_RESERVED_KEY(key)) return false; |
|
|
0 |
2 |
if (!map || !out_old || HM_IS_RESERVED_KEY(key)) return false; |
|
|
0 |
0 |
if (!map || !out_old || HM_IS_RESERVED_KEY(key)) return false; |
|
|
0 |
0 |
if (!map || !out_old || HM_IS_RESERVED_KEY(key)) return false; |
|
|
0 |
0 |
if (!map || !out_old || HM_IS_RESERVED_KEY(key)) return false; |
|
|
0 |
0 |
if (!map || !out_old || HM_IS_RESERVED_KEY(key)) return false; |
|
|
0 |
0 |
if (!map || !out_old || HM_IS_RESERVED_KEY(key)) return false; |
|
|
0 |
0 |
if (!map || !out_old || HM_IS_RESERVED_KEY(key)) return false; |
|
|
0 |
0 |
if (!map || !out_old || HM_IS_RESERVED_KEY(key)) return false; |
|
|
0 |
0 |
if (!map || !out_old || HM_IS_RESERVED_KEY(key)) return false; |
|
1425
|
2 |
0 |
if (index >= map->capacity || map->nodes[index].key != key) return false; |
|
|
1 |
1 |
if (index >= map->capacity || map->nodes[index].key != key) return false; |
|
|
0 |
0 |
if (index >= map->capacity || map->nodes[index].key != key) return false; |
|
|
0 |
0 |
if (index >= map->capacity || map->nodes[index].key != key) return false; |
|
|
0 |
0 |
if (index >= map->capacity || map->nodes[index].key != key) return false; |
|
|
0 |
0 |
if (index >= map->capacity || map->nodes[index].key != key) return false; |
|
1426
|
0 |
1 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
|
0 |
0 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
|
0 |
0 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
|
0 |
0 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
|
0 |
0 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
|
0 |
0 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
1427
|
0 |
0 |
(uint32_t)time(NULL) >= map->expires_at[index]) { |
|
|
0 |
0 |
(uint32_t)time(NULL) >= map->expires_at[index]) { |
|
|
0 |
0 |
(uint32_t)time(NULL) >= map->expires_at[index]) { |
|
1433
|
0 |
1 |
if (HM_UNLIKELY(map->lru_prev)) HM_FN(lru_promote)(map, (uint32_t)index); |
|
|
0 |
0 |
if (HM_UNLIKELY(map->lru_prev)) HM_FN(lru_promote)(map, (uint32_t)index); |
|
|
0 |
0 |
if (HM_UNLIKELY(map->lru_prev)) HM_FN(lru_promote)(map, (uint32_t)index); |
|
1445
|
2 |
0 |
if (!map || !key) return false; |
|
|
0 |
2 |
if (!map || !key) return false; |
|
1447
|
2 |
0 |
if (index >= map->capacity || map->nodes[index].key == NULL) return false; |
|
|
1 |
1 |
if (index >= map->capacity || map->nodes[index].key == NULL) return false; |
|
1448
|
0 |
1 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
|
0 |
0 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
1449
|
0 |
0 |
(uint32_t)time(NULL) >= map->expires_at[index]) { |
|
1456
|
1 |
0 |
if (new_val && new_len > 0) { |
|
|
1 |
0 |
if (new_val && new_len > 0) { |
|
1458
|
0 |
1 |
if (!buf) return false; |
|
1462
|
0 |
0 |
} else if (new_val) { |
|
1464
|
0 |
0 |
if (!buf) return false; |
|
1470
|
0 |
1 |
map->nodes[index].val_len = HM_PACK_LEN(new_len, new_utf8); |
|
1471
|
0 |
1 |
if (HM_UNLIKELY(map->lru_prev)) HM_FN(lru_promote)(map, (uint32_t)index); |
|
1478
|
0 |
0 |
if (!map || !key || !out_old) return false; |
|
|
0 |
0 |
if (!map || !key || !out_old) return false; |
|
|
0 |
0 |
if (!map || !key || !out_old) return false; |
|
1480
|
0 |
0 |
if (index >= map->capacity || map->nodes[index].key == NULL) return false; |
|
|
0 |
0 |
if (index >= map->capacity || map->nodes[index].key == NULL) return false; |
|
1481
|
0 |
0 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
|
0 |
0 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
1482
|
0 |
0 |
(uint32_t)time(NULL) >= map->expires_at[index]) { |
|
1488
|
0 |
0 |
if (HM_UNLIKELY(map->lru_prev)) HM_FN(lru_promote)(map, (uint32_t)index); |
|
1495
|
0 |
0 |
if (!map || !key || !out_old) return false; |
|
|
0 |
0 |
if (!map || !key || !out_old) return false; |
|
|
0 |
0 |
if (!map || !key || !out_old) return false; |
|
|
0 |
0 |
if (!map || !key || !out_old) return false; |
|
|
0 |
0 |
if (!map || !key || !out_old) return false; |
|
|
0 |
0 |
if (!map || !key || !out_old) return false; |
|
|
0 |
0 |
if (!map || !key || !out_old) return false; |
|
|
0 |
0 |
if (!map || !key || !out_old) return false; |
|
|
0 |
0 |
if (!map || !key || !out_old) return false; |
|
1497
|
0 |
0 |
if (index >= map->capacity || map->nodes[index].key == NULL) return false; |
|
|
0 |
0 |
if (index >= map->capacity || map->nodes[index].key == NULL) return false; |
|
|
0 |
0 |
if (index >= map->capacity || map->nodes[index].key == NULL) return false; |
|
|
0 |
0 |
if (index >= map->capacity || map->nodes[index].key == NULL) return false; |
|
|
0 |
0 |
if (index >= map->capacity || map->nodes[index].key == NULL) return false; |
|
|
0 |
0 |
if (index >= map->capacity || map->nodes[index].key == NULL) return false; |
|
1498
|
0 |
0 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
|
0 |
0 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
|
0 |
0 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
|
0 |
0 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
|
0 |
0 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
|
0 |
0 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
1499
|
0 |
0 |
(uint32_t)time(NULL) >= map->expires_at[index]) { |
|
|
0 |
0 |
(uint32_t)time(NULL) >= map->expires_at[index]) { |
|
|
0 |
0 |
(uint32_t)time(NULL) >= map->expires_at[index]) { |
|
1505
|
0 |
0 |
if (HM_UNLIKELY(map->lru_prev)) HM_FN(lru_promote)(map, (uint32_t)index); |
|
|
0 |
0 |
if (HM_UNLIKELY(map->lru_prev)) HM_FN(lru_promote)(map, (uint32_t)index); |
|
|
0 |
0 |
if (HM_UNLIKELY(map->lru_prev)) HM_FN(lru_promote)(map, (uint32_t)index); |
|
1519
|
3 |
0 |
if (!map || HM_IS_RESERVED_KEY(key)) return false; |
|
|
3 |
0 |
if (!map || HM_IS_RESERVED_KEY(key)) return false; |
|
|
0 |
3 |
if (!map || HM_IS_RESERVED_KEY(key)) return false; |
|
|
0 |
0 |
if (!map || HM_IS_RESERVED_KEY(key)) return false; |
|
|
0 |
0 |
if (!map || HM_IS_RESERVED_KEY(key)) return false; |
|
|
0 |
0 |
if (!map || HM_IS_RESERVED_KEY(key)) return false; |
|
|
0 |
0 |
if (!map || HM_IS_RESERVED_KEY(key)) return false; |
|
|
0 |
0 |
if (!map || HM_IS_RESERVED_KEY(key)) return false; |
|
|
0 |
0 |
if (!map || HM_IS_RESERVED_KEY(key)) return false; |
|
1521
|
3 |
0 |
if (index >= map->capacity || map->nodes[index].key != key) return false; |
|
|
1 |
2 |
if (index >= map->capacity || map->nodes[index].key != key) return false; |
|
|
0 |
0 |
if (index >= map->capacity || map->nodes[index].key != key) return false; |
|
|
0 |
0 |
if (index >= map->capacity || map->nodes[index].key != key) return false; |
|
|
0 |
0 |
if (index >= map->capacity || map->nodes[index].key != key) return false; |
|
|
0 |
0 |
if (index >= map->capacity || map->nodes[index].key != key) return false; |
|
1522
|
0 |
2 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
|
0 |
0 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
|
0 |
0 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
|
0 |
0 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
|
0 |
0 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
|
0 |
0 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
1523
|
0 |
0 |
(uint32_t)time(NULL) >= map->expires_at[index]) { |
|
|
0 |
0 |
(uint32_t)time(NULL) >= map->expires_at[index]) { |
|
|
0 |
0 |
(uint32_t)time(NULL) >= map->expires_at[index]) { |
|
1527
|
1 |
1 |
if (map->nodes[index].value != expected) return false; |
|
|
0 |
0 |
if (map->nodes[index].value != expected) return false; |
|
|
0 |
0 |
if (map->nodes[index].value != expected) return false; |
|
1529
|
0 |
1 |
if (HM_UNLIKELY(map->lru_prev)) HM_FN(lru_promote)(map, (uint32_t)index); |
|
|
0 |
0 |
if (HM_UNLIKELY(map->lru_prev)) HM_FN(lru_promote)(map, (uint32_t)index); |
|
|
0 |
0 |
if (HM_UNLIKELY(map->lru_prev)) HM_FN(lru_promote)(map, (uint32_t)index); |
|
1536
|
0 |
0 |
if (!map || !key) return false; |
|
|
0 |
0 |
if (!map || !key) return false; |
|
|
1 |
0 |
if (!map || !key) return false; |
|
|
0 |
1 |
if (!map || !key) return false; |
|
|
0 |
0 |
if (!map || !key) return false; |
|
|
0 |
0 |
if (!map || !key) return false; |
|
1538
|
0 |
0 |
if (index >= map->capacity || map->nodes[index].key == NULL) return false; |
|
|
0 |
0 |
if (index >= map->capacity || map->nodes[index].key == NULL) return false; |
|
|
1 |
0 |
if (index >= map->capacity || map->nodes[index].key == NULL) return false; |
|
|
0 |
1 |
if (index >= map->capacity || map->nodes[index].key == NULL) return false; |
|
|
0 |
0 |
if (index >= map->capacity || map->nodes[index].key == NULL) return false; |
|
|
0 |
0 |
if (index >= map->capacity || map->nodes[index].key == NULL) return false; |
|
1539
|
0 |
0 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
|
0 |
0 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
|
0 |
1 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
|
0 |
0 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
|
0 |
0 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
|
0 |
0 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
1540
|
0 |
0 |
(uint32_t)time(NULL) >= map->expires_at[index]) { |
|
|
0 |
0 |
(uint32_t)time(NULL) >= map->expires_at[index]) { |
|
|
0 |
0 |
(uint32_t)time(NULL) >= map->expires_at[index]) { |
|
1544
|
0 |
0 |
if (map->nodes[index].value != expected) return false; |
|
|
0 |
1 |
if (map->nodes[index].value != expected) return false; |
|
|
0 |
0 |
if (map->nodes[index].value != expected) return false; |
|
1546
|
0 |
0 |
if (HM_UNLIKELY(map->lru_prev)) HM_FN(lru_promote)(map, (uint32_t)index); |
|
|
0 |
1 |
if (HM_UNLIKELY(map->lru_prev)) HM_FN(lru_promote)(map, (uint32_t)index); |
|
|
0 |
0 |
if (HM_UNLIKELY(map->lru_prev)) HM_FN(lru_promote)(map, (uint32_t)index); |
|
1567
|
0 |
15 |
if (k == key) return index; |
|
|
0 |
6 |
if (k == key) return index; |
|
|
0 |
8 |
if (k == key) return index; |
|
1568
|
10 |
5 |
if (k == HM_EMPTY_KEY) { |
|
|
5 |
1 |
if (k == HM_EMPTY_KEY) { |
|
|
6 |
2 |
if (k == HM_EMPTY_KEY) { |
|
1569
|
2 |
8 |
size_t target = (first_tombstone < map->capacity) ? first_tombstone : index; |
|
|
1 |
4 |
size_t target = (first_tombstone < map->capacity) ? first_tombstone : index; |
|
|
2 |
4 |
size_t target = (first_tombstone < map->capacity) ? first_tombstone : index; |
|
1570
|
2 |
8 |
if (nodes[target].key == HM_TOMBSTONE_KEY) map->tombstones--; |
|
|
1 |
4 |
if (nodes[target].key == HM_TOMBSTONE_KEY) map->tombstones--; |
|
|
2 |
4 |
if (nodes[target].key == HM_TOMBSTONE_KEY) map->tombstones--; |
|
1576
|
2 |
3 |
if (k == HM_TOMBSTONE_KEY && first_tombstone >= map->capacity) { |
|
|
2 |
0 |
if (k == HM_TOMBSTONE_KEY && first_tombstone >= map->capacity) { |
|
|
1 |
0 |
if (k == HM_TOMBSTONE_KEY && first_tombstone >= map->capacity) { |
|
|
1 |
0 |
if (k == HM_TOMBSTONE_KEY && first_tombstone >= map->capacity) { |
|
|
2 |
0 |
if (k == HM_TOMBSTONE_KEY && first_tombstone >= map->capacity) { |
|
|
2 |
0 |
if (k == HM_TOMBSTONE_KEY && first_tombstone >= map->capacity) { |
|
1580
|
5 |
0 |
} while (index != original_index); |
|
|
1 |
0 |
} while (index != original_index); |
|
|
2 |
0 |
} while (index != original_index); |
|
1582
|
0 |
0 |
if (first_tombstone < map->capacity) { |
|
|
0 |
0 |
if (first_tombstone < map->capacity) { |
|
|
0 |
0 |
if (first_tombstone < map->capacity) { |
|
1593
|
15014 |
0 |
if (!map || !out_value || HM_IS_RESERVED_KEY(key)) return false; |
|
|
15014 |
0 |
if (!map || !out_value || HM_IS_RESERVED_KEY(key)) return false; |
|
|
15013 |
1 |
if (!map || !out_value || HM_IS_RESERVED_KEY(key)) return false; |
|
|
0 |
15013 |
if (!map || !out_value || HM_IS_RESERVED_KEY(key)) return false; |
|
|
9 |
0 |
if (!map || !out_value || HM_IS_RESERVED_KEY(key)) return false; |
|
|
9 |
0 |
if (!map || !out_value || HM_IS_RESERVED_KEY(key)) return false; |
|
|
8 |
1 |
if (!map || !out_value || HM_IS_RESERVED_KEY(key)) return false; |
|
|
0 |
8 |
if (!map || !out_value || HM_IS_RESERVED_KEY(key)) return false; |
|
|
12 |
0 |
if (!map || !out_value || HM_IS_RESERVED_KEY(key)) return false; |
|
|
12 |
0 |
if (!map || !out_value || HM_IS_RESERVED_KEY(key)) return false; |
|
|
11 |
1 |
if (!map || !out_value || HM_IS_RESERVED_KEY(key)) return false; |
|
|
0 |
11 |
if (!map || !out_value || HM_IS_RESERVED_KEY(key)) return false; |
|
1596
|
15013 |
0 |
if (index < map->capacity && map->nodes[index].key == key) { |
|
|
4 |
15009 |
if (index < map->capacity && map->nodes[index].key == key) { |
|
|
8 |
0 |
if (index < map->capacity && map->nodes[index].key == key) { |
|
|
2 |
6 |
if (index < map->capacity && map->nodes[index].key == key) { |
|
|
11 |
0 |
if (index < map->capacity && map->nodes[index].key == key) { |
|
|
3 |
8 |
if (index < map->capacity && map->nodes[index].key == key) { |
|
1598
|
3 |
15006 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
|
3 |
0 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
|
0 |
6 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
|
0 |
0 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
|
0 |
8 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
|
0 |
0 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
1599
|
1 |
2 |
(uint32_t)time(NULL) >= map->expires_at[index]) { |
|
|
0 |
0 |
(uint32_t)time(NULL) >= map->expires_at[index]) { |
|
|
0 |
0 |
(uint32_t)time(NULL) >= map->expires_at[index]) { |
|
1603
|
2 |
15006 |
if (map->nodes[index].value == HM_INT_MAX) return false; |
|
|
1 |
5 |
if (map->nodes[index].value == HM_INT_MAX) return false; |
|
|
2 |
6 |
if (map->nodes[index].value == HM_INT_MAX) return false; |
|
1605
|
1 |
15005 |
if (HM_UNLIKELY(map->lru_prev)) HM_FN(lru_promote)(map, (uint32_t)index); |
|
|
0 |
5 |
if (HM_UNLIKELY(map->lru_prev)) HM_FN(lru_promote)(map, (uint32_t)index); |
|
|
0 |
6 |
if (HM_UNLIKELY(map->lru_prev)) HM_FN(lru_promote)(map, (uint32_t)index); |
|
1606
|
2 |
15004 |
if (HM_UNLIKELY(map->expires_at && map->default_ttl > 0)) map->expires_at[index] = (uint32_t)time(NULL) + map->default_ttl; |
|
|
1 |
1 |
if (HM_UNLIKELY(map->expires_at && map->default_ttl > 0)) map->expires_at[index] = (uint32_t)time(NULL) + map->default_ttl; |
|
|
0 |
5 |
if (HM_UNLIKELY(map->expires_at && map->default_ttl > 0)) map->expires_at[index] = (uint32_t)time(NULL) + map->default_ttl; |
|
|
0 |
0 |
if (HM_UNLIKELY(map->expires_at && map->default_ttl > 0)) map->expires_at[index] = (uint32_t)time(NULL) + map->default_ttl; |
|
|
0 |
6 |
if (HM_UNLIKELY(map->expires_at && map->default_ttl > 0)) map->expires_at[index] = (uint32_t)time(NULL) + map->default_ttl; |
|
|
0 |
0 |
if (HM_UNLIKELY(map->expires_at && map->default_ttl > 0)) map->expires_at[index] = (uint32_t)time(NULL) + map->default_ttl; |
|
1611
|
1 |
4 |
if (map->max_size > 0 && map->size >= map->max_size) |
|
|
1 |
0 |
if (map->max_size > 0 && map->size >= map->max_size) |
|
|
0 |
2 |
if (map->max_size > 0 && map->size >= map->max_size) |
|
|
0 |
0 |
if (map->max_size > 0 && map->size >= map->max_size) |
|
|
0 |
3 |
if (map->max_size > 0 && map->size >= map->max_size) |
|
|
0 |
0 |
if (map->max_size > 0 && map->size >= map->max_size) |
|
1614
|
0 |
5 |
if ((map->size + map->tombstones) * 4 >= map->capacity * 3) { |
|
|
0 |
2 |
if ((map->size + map->tombstones) * 4 >= map->capacity * 3) { |
|
|
0 |
3 |
if ((map->size + map->tombstones) * 4 >= map->capacity * 3) { |
|
1615
|
0 |
0 |
if (map->max_size > 0 && map->tombstones > 0) { |
|
|
0 |
0 |
if (map->max_size > 0 && map->tombstones > 0) { |
|
|
0 |
0 |
if (map->max_size > 0 && map->tombstones > 0) { |
|
|
0 |
0 |
if (map->max_size > 0 && map->tombstones > 0) { |
|
|
0 |
0 |
if (map->max_size > 0 && map->tombstones > 0) { |
|
|
0 |
0 |
if (map->max_size > 0 && map->tombstones > 0) { |
|
1616
|
0 |
0 |
if (!HM_FN(compact)(map)) return false; |
|
|
0 |
0 |
if (!HM_FN(compact)(map)) return false; |
|
|
0 |
0 |
if (!HM_FN(compact)(map)) return false; |
|
1618
|
0 |
0 |
if (!HM_FN(resize)(map)) return false; |
|
|
0 |
0 |
if (!HM_FN(resize)(map)) return false; |
|
|
0 |
0 |
if (!HM_FN(resize)(map)) return false; |
|
1623
|
0 |
5 |
if (index >= map->capacity) return false; |
|
|
0 |
2 |
if (index >= map->capacity) return false; |
|
|
0 |
3 |
if (index >= map->capacity) return false; |
|
1625
|
1 |
4 |
if (HM_UNLIKELY(map->lru_prev)) HM_FN(lru_push_front)(map, (uint32_t)index); |
|
|
0 |
2 |
if (HM_UNLIKELY(map->lru_prev)) HM_FN(lru_push_front)(map, (uint32_t)index); |
|
|
0 |
3 |
if (HM_UNLIKELY(map->lru_prev)) HM_FN(lru_push_front)(map, (uint32_t)index); |
|
1626
|
1 |
4 |
if (HM_UNLIKELY(map->expires_at && map->default_ttl > 0)) map->expires_at[index] = (uint32_t)time(NULL) + map->default_ttl; |
|
|
1 |
0 |
if (HM_UNLIKELY(map->expires_at && map->default_ttl > 0)) map->expires_at[index] = (uint32_t)time(NULL) + map->default_ttl; |
|
|
0 |
2 |
if (HM_UNLIKELY(map->expires_at && map->default_ttl > 0)) map->expires_at[index] = (uint32_t)time(NULL) + map->default_ttl; |
|
|
0 |
0 |
if (HM_UNLIKELY(map->expires_at && map->default_ttl > 0)) map->expires_at[index] = (uint32_t)time(NULL) + map->default_ttl; |
|
|
1 |
2 |
if (HM_UNLIKELY(map->expires_at && map->default_ttl > 0)) map->expires_at[index] = (uint32_t)time(NULL) + map->default_ttl; |
|
|
1 |
0 |
if (HM_UNLIKELY(map->expires_at && map->default_ttl > 0)) map->expires_at[index] = (uint32_t)time(NULL) + map->default_ttl; |
|
1631
|
8 |
0 |
if (!map || !out_value || HM_IS_RESERVED_KEY(key)) return false; |
|
|
8 |
0 |
if (!map || !out_value || HM_IS_RESERVED_KEY(key)) return false; |
|
|
8 |
0 |
if (!map || !out_value || HM_IS_RESERVED_KEY(key)) return false; |
|
|
0 |
8 |
if (!map || !out_value || HM_IS_RESERVED_KEY(key)) return false; |
|
|
9 |
0 |
if (!map || !out_value || HM_IS_RESERVED_KEY(key)) return false; |
|
|
9 |
0 |
if (!map || !out_value || HM_IS_RESERVED_KEY(key)) return false; |
|
|
9 |
0 |
if (!map || !out_value || HM_IS_RESERVED_KEY(key)) return false; |
|
|
0 |
9 |
if (!map || !out_value || HM_IS_RESERVED_KEY(key)) return false; |
|
|
8 |
0 |
if (!map || !out_value || HM_IS_RESERVED_KEY(key)) return false; |
|
|
8 |
0 |
if (!map || !out_value || HM_IS_RESERVED_KEY(key)) return false; |
|
|
8 |
0 |
if (!map || !out_value || HM_IS_RESERVED_KEY(key)) return false; |
|
|
0 |
8 |
if (!map || !out_value || HM_IS_RESERVED_KEY(key)) return false; |
|
1634
|
8 |
0 |
if (index < map->capacity && map->nodes[index].key == key) { |
|
|
3 |
5 |
if (index < map->capacity && map->nodes[index].key == key) { |
|
|
9 |
0 |
if (index < map->capacity && map->nodes[index].key == key) { |
|
|
2 |
7 |
if (index < map->capacity && map->nodes[index].key == key) { |
|
|
8 |
0 |
if (index < map->capacity && map->nodes[index].key == key) { |
|
|
2 |
6 |
if (index < map->capacity && map->nodes[index].key == key) { |
|
1636
|
0 |
5 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
|
0 |
0 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
|
0 |
7 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
|
0 |
0 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
|
0 |
6 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
|
0 |
0 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
1637
|
0 |
0 |
(uint32_t)time(NULL) >= map->expires_at[index]) { |
|
|
0 |
0 |
(uint32_t)time(NULL) >= map->expires_at[index]) { |
|
|
0 |
0 |
(uint32_t)time(NULL) >= map->expires_at[index]) { |
|
1642
|
2 |
3 |
if (delta > 0 && val > HM_INT_MAX - delta) return false; |
|
|
1 |
1 |
if (delta > 0 && val > HM_INT_MAX - delta) return false; |
|
|
4 |
3 |
if (delta > 0 && val > HM_INT_MAX - delta) return false; |
|
|
1 |
3 |
if (delta > 0 && val > HM_INT_MAX - delta) return false; |
|
|
3 |
3 |
if (delta > 0 && val > HM_INT_MAX - delta) return false; |
|
|
1 |
2 |
if (delta > 0 && val > HM_INT_MAX - delta) return false; |
|
1643
|
2 |
2 |
if (delta < 0) { |
|
|
2 |
4 |
if (delta < 0) { |
|
|
2 |
3 |
if (delta < 0) { |
|
1644
|
0 |
2 |
if (delta == HM_INT_MIN) { if (val < 0) return false; } |
|
|
0 |
0 |
if (delta == HM_INT_MIN) { if (val < 0) return false; } |
|
|
0 |
2 |
if (delta == HM_INT_MIN) { if (val < 0) return false; } |
|
|
0 |
0 |
if (delta == HM_INT_MIN) { if (val < 0) return false; } |
|
|
0 |
2 |
if (delta == HM_INT_MIN) { if (val < 0) return false; } |
|
|
0 |
0 |
if (delta == HM_INT_MIN) { if (val < 0) return false; } |
|
1645
|
1 |
1 |
else { if (val < HM_INT_MIN - delta) return false; } |
|
|
1 |
1 |
else { if (val < HM_INT_MIN - delta) return false; } |
|
|
1 |
1 |
else { if (val < HM_INT_MIN - delta) return false; } |
|
1649
|
0 |
3 |
if (HM_UNLIKELY(map->lru_prev)) HM_FN(lru_promote)(map, (uint32_t)index); |
|
|
0 |
5 |
if (HM_UNLIKELY(map->lru_prev)) HM_FN(lru_promote)(map, (uint32_t)index); |
|
|
0 |
4 |
if (HM_UNLIKELY(map->lru_prev)) HM_FN(lru_promote)(map, (uint32_t)index); |
|
1650
|
0 |
3 |
if (HM_UNLIKELY(map->expires_at && map->default_ttl > 0)) map->expires_at[index] = (uint32_t)time(NULL) + map->default_ttl; |
|
|
0 |
0 |
if (HM_UNLIKELY(map->expires_at && map->default_ttl > 0)) map->expires_at[index] = (uint32_t)time(NULL) + map->default_ttl; |
|
|
0 |
5 |
if (HM_UNLIKELY(map->expires_at && map->default_ttl > 0)) map->expires_at[index] = (uint32_t)time(NULL) + map->default_ttl; |
|
|
0 |
0 |
if (HM_UNLIKELY(map->expires_at && map->default_ttl > 0)) map->expires_at[index] = (uint32_t)time(NULL) + map->default_ttl; |
|
|
0 |
4 |
if (HM_UNLIKELY(map->expires_at && map->default_ttl > 0)) map->expires_at[index] = (uint32_t)time(NULL) + map->default_ttl; |
|
|
0 |
0 |
if (HM_UNLIKELY(map->expires_at && map->default_ttl > 0)) map->expires_at[index] = (uint32_t)time(NULL) + map->default_ttl; |
|
1655
|
0 |
3 |
if (map->max_size > 0 && map->size >= map->max_size) |
|
|
0 |
0 |
if (map->max_size > 0 && map->size >= map->max_size) |
|
|
0 |
2 |
if (map->max_size > 0 && map->size >= map->max_size) |
|
|
0 |
0 |
if (map->max_size > 0 && map->size >= map->max_size) |
|
|
0 |
2 |
if (map->max_size > 0 && map->size >= map->max_size) |
|
|
0 |
0 |
if (map->max_size > 0 && map->size >= map->max_size) |
|
1658
|
0 |
3 |
if ((map->size + map->tombstones) * 4 >= map->capacity * 3) { |
|
|
0 |
2 |
if ((map->size + map->tombstones) * 4 >= map->capacity * 3) { |
|
|
0 |
2 |
if ((map->size + map->tombstones) * 4 >= map->capacity * 3) { |
|
1659
|
0 |
0 |
if (map->max_size > 0 && map->tombstones > 0) { |
|
|
0 |
0 |
if (map->max_size > 0 && map->tombstones > 0) { |
|
|
0 |
0 |
if (map->max_size > 0 && map->tombstones > 0) { |
|
|
0 |
0 |
if (map->max_size > 0 && map->tombstones > 0) { |
|
|
0 |
0 |
if (map->max_size > 0 && map->tombstones > 0) { |
|
|
0 |
0 |
if (map->max_size > 0 && map->tombstones > 0) { |
|
1660
|
0 |
0 |
if (!HM_FN(compact)(map)) return false; |
|
|
0 |
0 |
if (!HM_FN(compact)(map)) return false; |
|
|
0 |
0 |
if (!HM_FN(compact)(map)) return false; |
|
1662
|
0 |
0 |
if (!HM_FN(resize)(map)) return false; |
|
|
0 |
0 |
if (!HM_FN(resize)(map)) return false; |
|
|
0 |
0 |
if (!HM_FN(resize)(map)) return false; |
|
1667
|
0 |
3 |
if (index >= map->capacity) return false; |
|
|
0 |
2 |
if (index >= map->capacity) return false; |
|
|
0 |
2 |
if (index >= map->capacity) return false; |
|
1670
|
0 |
3 |
if (HM_UNLIKELY(map->lru_prev)) HM_FN(lru_push_front)(map, (uint32_t)index); |
|
|
0 |
2 |
if (HM_UNLIKELY(map->lru_prev)) HM_FN(lru_push_front)(map, (uint32_t)index); |
|
|
0 |
2 |
if (HM_UNLIKELY(map->lru_prev)) HM_FN(lru_push_front)(map, (uint32_t)index); |
|
1671
|
0 |
3 |
if (HM_UNLIKELY(map->expires_at && map->default_ttl > 0)) map->expires_at[index] = (uint32_t)time(NULL) + map->default_ttl; |
|
|
0 |
0 |
if (HM_UNLIKELY(map->expires_at && map->default_ttl > 0)) map->expires_at[index] = (uint32_t)time(NULL) + map->default_ttl; |
|
|
0 |
2 |
if (HM_UNLIKELY(map->expires_at && map->default_ttl > 0)) map->expires_at[index] = (uint32_t)time(NULL) + map->default_ttl; |
|
|
0 |
0 |
if (HM_UNLIKELY(map->expires_at && map->default_ttl > 0)) map->expires_at[index] = (uint32_t)time(NULL) + map->default_ttl; |
|
|
0 |
2 |
if (HM_UNLIKELY(map->expires_at && map->default_ttl > 0)) map->expires_at[index] = (uint32_t)time(NULL) + map->default_ttl; |
|
|
0 |
0 |
if (HM_UNLIKELY(map->expires_at && map->default_ttl > 0)) map->expires_at[index] = (uint32_t)time(NULL) + map->default_ttl; |
|
1676
|
5006 |
0 |
if (!map || !out_value || HM_IS_RESERVED_KEY(key)) return false; |
|
|
5006 |
0 |
if (!map || !out_value || HM_IS_RESERVED_KEY(key)) return false; |
|
|
5005 |
1 |
if (!map || !out_value || HM_IS_RESERVED_KEY(key)) return false; |
|
|
0 |
5005 |
if (!map || !out_value || HM_IS_RESERVED_KEY(key)) return false; |
|
|
9 |
0 |
if (!map || !out_value || HM_IS_RESERVED_KEY(key)) return false; |
|
|
9 |
0 |
if (!map || !out_value || HM_IS_RESERVED_KEY(key)) return false; |
|
|
8 |
1 |
if (!map || !out_value || HM_IS_RESERVED_KEY(key)) return false; |
|
|
0 |
8 |
if (!map || !out_value || HM_IS_RESERVED_KEY(key)) return false; |
|
|
6 |
0 |
if (!map || !out_value || HM_IS_RESERVED_KEY(key)) return false; |
|
|
6 |
0 |
if (!map || !out_value || HM_IS_RESERVED_KEY(key)) return false; |
|
|
5 |
1 |
if (!map || !out_value || HM_IS_RESERVED_KEY(key)) return false; |
|
|
0 |
5 |
if (!map || !out_value || HM_IS_RESERVED_KEY(key)) return false; |
|
1679
|
5005 |
0 |
if (index < map->capacity && map->nodes[index].key == key) { |
|
|
2 |
5003 |
if (index < map->capacity && map->nodes[index].key == key) { |
|
|
8 |
0 |
if (index < map->capacity && map->nodes[index].key == key) { |
|
|
1 |
7 |
if (index < map->capacity && map->nodes[index].key == key) { |
|
|
5 |
0 |
if (index < map->capacity && map->nodes[index].key == key) { |
|
|
1 |
4 |
if (index < map->capacity && map->nodes[index].key == key) { |
|
1681
|
0 |
5003 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
|
0 |
0 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
|
0 |
7 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
|
0 |
0 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
|
0 |
4 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
|
0 |
0 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
1682
|
0 |
0 |
(uint32_t)time(NULL) >= map->expires_at[index]) { |
|
|
0 |
0 |
(uint32_t)time(NULL) >= map->expires_at[index]) { |
|
|
0 |
0 |
(uint32_t)time(NULL) >= map->expires_at[index]) { |
|
1686
|
1 |
5002 |
if (map->nodes[index].value == HM_INT_MIN) return false; |
|
|
2 |
5 |
if (map->nodes[index].value == HM_INT_MIN) return false; |
|
|
1 |
3 |
if (map->nodes[index].value == HM_INT_MIN) return false; |
|
1688
|
0 |
5002 |
if (HM_UNLIKELY(map->lru_prev)) HM_FN(lru_promote)(map, (uint32_t)index); |
|
|
0 |
5 |
if (HM_UNLIKELY(map->lru_prev)) HM_FN(lru_promote)(map, (uint32_t)index); |
|
|
0 |
3 |
if (HM_UNLIKELY(map->lru_prev)) HM_FN(lru_promote)(map, (uint32_t)index); |
|
1689
|
0 |
5002 |
if (HM_UNLIKELY(map->expires_at && map->default_ttl > 0)) map->expires_at[index] = (uint32_t)time(NULL) + map->default_ttl; |
|
|
0 |
0 |
if (HM_UNLIKELY(map->expires_at && map->default_ttl > 0)) map->expires_at[index] = (uint32_t)time(NULL) + map->default_ttl; |
|
|
0 |
5 |
if (HM_UNLIKELY(map->expires_at && map->default_ttl > 0)) map->expires_at[index] = (uint32_t)time(NULL) + map->default_ttl; |
|
|
0 |
0 |
if (HM_UNLIKELY(map->expires_at && map->default_ttl > 0)) map->expires_at[index] = (uint32_t)time(NULL) + map->default_ttl; |
|
|
0 |
3 |
if (HM_UNLIKELY(map->expires_at && map->default_ttl > 0)) map->expires_at[index] = (uint32_t)time(NULL) + map->default_ttl; |
|
|
0 |
0 |
if (HM_UNLIKELY(map->expires_at && map->default_ttl > 0)) map->expires_at[index] = (uint32_t)time(NULL) + map->default_ttl; |
|
1694
|
0 |
2 |
if (map->max_size > 0 && map->size >= map->max_size) |
|
|
0 |
0 |
if (map->max_size > 0 && map->size >= map->max_size) |
|
|
0 |
1 |
if (map->max_size > 0 && map->size >= map->max_size) |
|
|
0 |
0 |
if (map->max_size > 0 && map->size >= map->max_size) |
|
|
0 |
1 |
if (map->max_size > 0 && map->size >= map->max_size) |
|
|
0 |
0 |
if (map->max_size > 0 && map->size >= map->max_size) |
|
1697
|
0 |
2 |
if ((map->size + map->tombstones) * 4 >= map->capacity * 3) { |
|
|
0 |
1 |
if ((map->size + map->tombstones) * 4 >= map->capacity * 3) { |
|
|
0 |
1 |
if ((map->size + map->tombstones) * 4 >= map->capacity * 3) { |
|
1698
|
0 |
0 |
if (map->max_size > 0 && map->tombstones > 0) { |
|
|
0 |
0 |
if (map->max_size > 0 && map->tombstones > 0) { |
|
|
0 |
0 |
if (map->max_size > 0 && map->tombstones > 0) { |
|
|
0 |
0 |
if (map->max_size > 0 && map->tombstones > 0) { |
|
|
0 |
0 |
if (map->max_size > 0 && map->tombstones > 0) { |
|
|
0 |
0 |
if (map->max_size > 0 && map->tombstones > 0) { |
|
1699
|
0 |
0 |
if (!HM_FN(compact)(map)) return false; |
|
|
0 |
0 |
if (!HM_FN(compact)(map)) return false; |
|
|
0 |
0 |
if (!HM_FN(compact)(map)) return false; |
|
1701
|
0 |
0 |
if (!HM_FN(resize)(map)) return false; |
|
|
0 |
0 |
if (!HM_FN(resize)(map)) return false; |
|
|
0 |
0 |
if (!HM_FN(resize)(map)) return false; |
|
1706
|
0 |
2 |
if (index >= map->capacity) return false; |
|
|
0 |
1 |
if (index >= map->capacity) return false; |
|
|
0 |
1 |
if (index >= map->capacity) return false; |
|
1708
|
0 |
2 |
if (HM_UNLIKELY(map->lru_prev)) HM_FN(lru_push_front)(map, (uint32_t)index); |
|
|
0 |
1 |
if (HM_UNLIKELY(map->lru_prev)) HM_FN(lru_push_front)(map, (uint32_t)index); |
|
|
0 |
1 |
if (HM_UNLIKELY(map->lru_prev)) HM_FN(lru_push_front)(map, (uint32_t)index); |
|
1709
|
0 |
2 |
if (HM_UNLIKELY(map->expires_at && map->default_ttl > 0)) map->expires_at[index] = (uint32_t)time(NULL) + map->default_ttl; |
|
|
0 |
0 |
if (HM_UNLIKELY(map->expires_at && map->default_ttl > 0)) map->expires_at[index] = (uint32_t)time(NULL) + map->default_ttl; |
|
|
0 |
1 |
if (HM_UNLIKELY(map->expires_at && map->default_ttl > 0)) map->expires_at[index] = (uint32_t)time(NULL) + map->default_ttl; |
|
|
0 |
0 |
if (HM_UNLIKELY(map->expires_at && map->default_ttl > 0)) map->expires_at[index] = (uint32_t)time(NULL) + map->default_ttl; |
|
|
0 |
1 |
if (HM_UNLIKELY(map->expires_at && map->default_ttl > 0)) map->expires_at[index] = (uint32_t)time(NULL) + map->default_ttl; |
|
|
0 |
0 |
if (HM_UNLIKELY(map->expires_at && map->default_ttl > 0)) map->expires_at[index] = (uint32_t)time(NULL) + map->default_ttl; |
|
1724
|
5 |
2 |
if (nodes[index].key == NULL) { |
|
|
10 |
4 |
if (nodes[index].key == NULL) { |
|
|
6 |
2 |
if (nodes[index].key == NULL) { |
|
1725
|
1 |
4 |
size_t target = (first_tombstone < map->capacity) ? first_tombstone : index; |
|
|
3 |
7 |
size_t target = (first_tombstone < map->capacity) ? first_tombstone : index; |
|
|
2 |
4 |
size_t target = (first_tombstone < map->capacity) ? first_tombstone : index; |
|
1727
|
0 |
5 |
if (!new_key) return map->capacity; |
|
|
0 |
10 |
if (!new_key) return map->capacity; |
|
|
0 |
6 |
if (!new_key) return map->capacity; |
|
1730
|
1 |
4 |
if (HM_SLOT_IS_TOMBSTONE(&nodes[target])) map->tombstones--; |
|
|
3 |
7 |
if (HM_SLOT_IS_TOMBSTONE(&nodes[target])) map->tombstones--; |
|
|
2 |
4 |
if (HM_SLOT_IS_TOMBSTONE(&nodes[target])) map->tombstones--; |
|
1732
|
0 |
5 |
nodes[target].key_len = HM_PACK_LEN(key_len, key_utf8); |
|
|
0 |
10 |
nodes[target].key_len = HM_PACK_LEN(key_len, key_utf8); |
|
|
0 |
6 |
nodes[target].key_len = HM_PACK_LEN(key_len, key_utf8); |
|
1738
|
1 |
1 |
if (nodes[index].key == HM_STR_TOMBSTONE) { |
|
|
3 |
1 |
if (nodes[index].key == HM_STR_TOMBSTONE) { |
|
|
2 |
0 |
if (nodes[index].key == HM_STR_TOMBSTONE) { |
|
1739
|
1 |
0 |
if (first_tombstone >= map->capacity) first_tombstone = index; |
|
|
3 |
0 |
if (first_tombstone >= map->capacity) first_tombstone = index; |
|
|
2 |
0 |
if (first_tombstone >= map->capacity) first_tombstone = index; |
|
1740
|
0 |
1 |
} else if (nodes[index].key_hash == key_hash && |
|
|
0 |
1 |
} else if (nodes[index].key_hash == key_hash && |
|
|
0 |
0 |
} else if (nodes[index].key_hash == key_hash && |
|
1741
|
0 |
0 |
nodes[index].key_len == HM_PACK_LEN(key_len, key_utf8) && |
|
|
0 |
0 |
nodes[index].key_len == HM_PACK_LEN(key_len, key_utf8) && |
|
|
0 |
0 |
nodes[index].key_len == HM_PACK_LEN(key_len, key_utf8) && |
|
|
0 |
0 |
nodes[index].key_len == HM_PACK_LEN(key_len, key_utf8) && |
|
|
0 |
0 |
nodes[index].key_len == HM_PACK_LEN(key_len, key_utf8) && |
|
|
0 |
0 |
nodes[index].key_len == HM_PACK_LEN(key_len, key_utf8) && |
|
1742
|
0 |
0 |
memcmp(nodes[index].key, key, key_len) == 0) { |
|
|
0 |
0 |
memcmp(nodes[index].key, key, key_len) == 0) { |
|
|
0 |
0 |
memcmp(nodes[index].key, key, key_len) == 0) { |
|
1746
|
2 |
0 |
} while (index != original_index); |
|
|
4 |
0 |
} while (index != original_index); |
|
|
2 |
0 |
} while (index != original_index); |
|
1748
|
0 |
0 |
if (first_tombstone < map->capacity) { |
|
|
0 |
0 |
if (first_tombstone < map->capacity) { |
|
|
0 |
0 |
if (first_tombstone < map->capacity) { |
|
1750
|
0 |
0 |
if (!new_key) return map->capacity; |
|
|
0 |
0 |
if (!new_key) return map->capacity; |
|
|
0 |
0 |
if (!new_key) return map->capacity; |
|
1755
|
0 |
0 |
nodes[first_tombstone].key_len = HM_PACK_LEN(key_len, key_utf8); |
|
|
0 |
0 |
nodes[first_tombstone].key_len = HM_PACK_LEN(key_len, key_utf8); |
|
|
0 |
0 |
nodes[first_tombstone].key_len = HM_PACK_LEN(key_len, key_utf8); |
|
1767
|
12 |
0 |
if (!map || !key || !out_value) return false; |
|
|
12 |
0 |
if (!map || !key || !out_value) return false; |
|
|
0 |
12 |
if (!map || !key || !out_value) return false; |
|
|
15015 |
0 |
if (!map || !key || !out_value) return false; |
|
|
15015 |
0 |
if (!map || !key || !out_value) return false; |
|
|
0 |
15015 |
if (!map || !key || !out_value) return false; |
|
|
10 |
0 |
if (!map || !key || !out_value) return false; |
|
|
10 |
0 |
if (!map || !key || !out_value) return false; |
|
|
0 |
10 |
if (!map || !key || !out_value) return false; |
|
1770
|
12 |
0 |
if (index < map->capacity && map->nodes[index].key != NULL && |
|
|
2 |
10 |
if (index < map->capacity && map->nodes[index].key != NULL && |
|
|
15015 |
0 |
if (index < map->capacity && map->nodes[index].key != NULL && |
|
|
6 |
15009 |
if (index < map->capacity && map->nodes[index].key != NULL && |
|
|
10 |
0 |
if (index < map->capacity && map->nodes[index].key != NULL && |
|
|
4 |
6 |
if (index < map->capacity && map->nodes[index].key != NULL && |
|
1771
|
0 |
10 |
map->nodes[index].key != HM_STR_TOMBSTONE) { |
|
|
0 |
15009 |
map->nodes[index].key != HM_STR_TOMBSTONE) { |
|
|
0 |
6 |
map->nodes[index].key != HM_STR_TOMBSTONE) { |
|
1773
|
0 |
10 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
|
0 |
0 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
|
0 |
15009 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
|
0 |
0 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
|
0 |
6 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
|
0 |
0 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
1774
|
0 |
0 |
(uint32_t)time(NULL) >= map->expires_at[index]) { |
|
|
0 |
0 |
(uint32_t)time(NULL) >= map->expires_at[index]) { |
|
|
0 |
0 |
(uint32_t)time(NULL) >= map->expires_at[index]) { |
|
1778
|
1 |
9 |
if (map->nodes[index].value == HM_INT_MAX) return false; |
|
|
1 |
15008 |
if (map->nodes[index].value == HM_INT_MAX) return false; |
|
|
1 |
5 |
if (map->nodes[index].value == HM_INT_MAX) return false; |
|
1780
|
0 |
9 |
if (HM_UNLIKELY(map->lru_prev)) HM_FN(lru_promote)(map, (uint32_t)index); |
|
|
1 |
15007 |
if (HM_UNLIKELY(map->lru_prev)) HM_FN(lru_promote)(map, (uint32_t)index); |
|
|
1 |
4 |
if (HM_UNLIKELY(map->lru_prev)) HM_FN(lru_promote)(map, (uint32_t)index); |
|
1781
|
0 |
9 |
if (HM_UNLIKELY(map->expires_at && map->default_ttl > 0)) map->expires_at[index] = (uint32_t)time(NULL) + map->default_ttl; |
|
|
0 |
0 |
if (HM_UNLIKELY(map->expires_at && map->default_ttl > 0)) map->expires_at[index] = (uint32_t)time(NULL) + map->default_ttl; |
|
|
0 |
15008 |
if (HM_UNLIKELY(map->expires_at && map->default_ttl > 0)) map->expires_at[index] = (uint32_t)time(NULL) + map->default_ttl; |
|
|
0 |
0 |
if (HM_UNLIKELY(map->expires_at && map->default_ttl > 0)) map->expires_at[index] = (uint32_t)time(NULL) + map->default_ttl; |
|
|
0 |
5 |
if (HM_UNLIKELY(map->expires_at && map->default_ttl > 0)) map->expires_at[index] = (uint32_t)time(NULL) + map->default_ttl; |
|
|
0 |
0 |
if (HM_UNLIKELY(map->expires_at && map->default_ttl > 0)) map->expires_at[index] = (uint32_t)time(NULL) + map->default_ttl; |
|
1786
|
0 |
2 |
if (map->max_size > 0 && map->size >= map->max_size) |
|
|
0 |
0 |
if (map->max_size > 0 && map->size >= map->max_size) |
|
|
0 |
6 |
if (map->max_size > 0 && map->size >= map->max_size) |
|
|
0 |
0 |
if (map->max_size > 0 && map->size >= map->max_size) |
|
|
0 |
4 |
if (map->max_size > 0 && map->size >= map->max_size) |
|
|
0 |
0 |
if (map->max_size > 0 && map->size >= map->max_size) |
|
1789
|
0 |
2 |
if ((map->size + map->tombstones) * 4 >= map->capacity * 3) { |
|
|
0 |
6 |
if ((map->size + map->tombstones) * 4 >= map->capacity * 3) { |
|
|
0 |
4 |
if ((map->size + map->tombstones) * 4 >= map->capacity * 3) { |
|
1790
|
0 |
0 |
if (map->max_size > 0 && map->tombstones > 0) { |
|
|
0 |
0 |
if (map->max_size > 0 && map->tombstones > 0) { |
|
|
0 |
0 |
if (map->max_size > 0 && map->tombstones > 0) { |
|
|
0 |
0 |
if (map->max_size > 0 && map->tombstones > 0) { |
|
|
0 |
0 |
if (map->max_size > 0 && map->tombstones > 0) { |
|
|
0 |
0 |
if (map->max_size > 0 && map->tombstones > 0) { |
|
1791
|
0 |
0 |
if (!HM_FN(compact)(map)) return false; |
|
|
0 |
0 |
if (!HM_FN(compact)(map)) return false; |
|
|
0 |
0 |
if (!HM_FN(compact)(map)) return false; |
|
1793
|
0 |
0 |
if (!HM_FN(resize)(map)) return false; |
|
|
0 |
0 |
if (!HM_FN(resize)(map)) return false; |
|
|
0 |
0 |
if (!HM_FN(resize)(map)) return false; |
|
1798
|
0 |
2 |
if (index >= map->capacity) return false; |
|
|
0 |
6 |
if (index >= map->capacity) return false; |
|
|
0 |
4 |
if (index >= map->capacity) return false; |
|
1800
|
0 |
2 |
if (HM_UNLIKELY(map->lru_prev)) HM_FN(lru_push_front)(map, (uint32_t)index); |
|
|
0 |
6 |
if (HM_UNLIKELY(map->lru_prev)) HM_FN(lru_push_front)(map, (uint32_t)index); |
|
|
0 |
4 |
if (HM_UNLIKELY(map->lru_prev)) HM_FN(lru_push_front)(map, (uint32_t)index); |
|
1801
|
0 |
2 |
if (HM_UNLIKELY(map->expires_at && map->default_ttl > 0)) map->expires_at[index] = (uint32_t)time(NULL) + map->default_ttl; |
|
|
0 |
0 |
if (HM_UNLIKELY(map->expires_at && map->default_ttl > 0)) map->expires_at[index] = (uint32_t)time(NULL) + map->default_ttl; |
|
|
1 |
5 |
if (HM_UNLIKELY(map->expires_at && map->default_ttl > 0)) map->expires_at[index] = (uint32_t)time(NULL) + map->default_ttl; |
|
|
1 |
0 |
if (HM_UNLIKELY(map->expires_at && map->default_ttl > 0)) map->expires_at[index] = (uint32_t)time(NULL) + map->default_ttl; |
|
|
1 |
3 |
if (HM_UNLIKELY(map->expires_at && map->default_ttl > 0)) map->expires_at[index] = (uint32_t)time(NULL) + map->default_ttl; |
|
|
1 |
0 |
if (HM_UNLIKELY(map->expires_at && map->default_ttl > 0)) map->expires_at[index] = (uint32_t)time(NULL) + map->default_ttl; |
|
1808
|
6 |
0 |
if (!map || !key || !out_value) return false; |
|
|
6 |
0 |
if (!map || !key || !out_value) return false; |
|
|
0 |
6 |
if (!map || !key || !out_value) return false; |
|
|
6 |
0 |
if (!map || !key || !out_value) return false; |
|
|
6 |
0 |
if (!map || !key || !out_value) return false; |
|
|
0 |
6 |
if (!map || !key || !out_value) return false; |
|
|
6 |
0 |
if (!map || !key || !out_value) return false; |
|
|
6 |
0 |
if (!map || !key || !out_value) return false; |
|
|
0 |
6 |
if (!map || !key || !out_value) return false; |
|
1811
|
6 |
0 |
if (index < map->capacity && map->nodes[index].key != NULL && |
|
|
2 |
4 |
if (index < map->capacity && map->nodes[index].key != NULL && |
|
|
6 |
0 |
if (index < map->capacity && map->nodes[index].key != NULL && |
|
|
2 |
4 |
if (index < map->capacity && map->nodes[index].key != NULL && |
|
|
6 |
0 |
if (index < map->capacity && map->nodes[index].key != NULL && |
|
|
1 |
5 |
if (index < map->capacity && map->nodes[index].key != NULL && |
|
1812
|
0 |
4 |
map->nodes[index].key != HM_STR_TOMBSTONE) { |
|
|
0 |
4 |
map->nodes[index].key != HM_STR_TOMBSTONE) { |
|
|
0 |
5 |
map->nodes[index].key != HM_STR_TOMBSTONE) { |
|
1814
|
0 |
4 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
|
0 |
0 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
|
0 |
4 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
|
0 |
0 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
|
0 |
5 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
|
0 |
0 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
1815
|
0 |
0 |
(uint32_t)time(NULL) >= map->expires_at[index]) { |
|
|
0 |
0 |
(uint32_t)time(NULL) >= map->expires_at[index]) { |
|
|
0 |
0 |
(uint32_t)time(NULL) >= map->expires_at[index]) { |
|
1820
|
1 |
3 |
if (delta > 0 && val > HM_INT_MAX - delta) return false; |
|
|
1 |
0 |
if (delta > 0 && val > HM_INT_MAX - delta) return false; |
|
|
1 |
3 |
if (delta > 0 && val > HM_INT_MAX - delta) return false; |
|
|
1 |
0 |
if (delta > 0 && val > HM_INT_MAX - delta) return false; |
|
|
3 |
2 |
if (delta > 0 && val > HM_INT_MAX - delta) return false; |
|
|
1 |
2 |
if (delta > 0 && val > HM_INT_MAX - delta) return false; |
|
1821
|
2 |
1 |
if (delta < 0) { |
|
|
2 |
1 |
if (delta < 0) { |
|
|
2 |
2 |
if (delta < 0) { |
|
1822
|
0 |
2 |
if (delta == HM_INT_MIN) { if (val < 0) return false; } |
|
|
0 |
0 |
if (delta == HM_INT_MIN) { if (val < 0) return false; } |
|
|
0 |
2 |
if (delta == HM_INT_MIN) { if (val < 0) return false; } |
|
|
0 |
0 |
if (delta == HM_INT_MIN) { if (val < 0) return false; } |
|
|
0 |
2 |
if (delta == HM_INT_MIN) { if (val < 0) return false; } |
|
|
0 |
0 |
if (delta == HM_INT_MIN) { if (val < 0) return false; } |
|
1823
|
1 |
1 |
else { if (val < HM_INT_MIN - delta) return false; } |
|
|
1 |
1 |
else { if (val < HM_INT_MIN - delta) return false; } |
|
|
1 |
1 |
else { if (val < HM_INT_MIN - delta) return false; } |
|
1827
|
0 |
2 |
if (HM_UNLIKELY(map->lru_prev)) HM_FN(lru_promote)(map, (uint32_t)index); |
|
|
0 |
2 |
if (HM_UNLIKELY(map->lru_prev)) HM_FN(lru_promote)(map, (uint32_t)index); |
|
|
0 |
3 |
if (HM_UNLIKELY(map->lru_prev)) HM_FN(lru_promote)(map, (uint32_t)index); |
|
1828
|
0 |
2 |
if (HM_UNLIKELY(map->expires_at && map->default_ttl > 0)) map->expires_at[index] = (uint32_t)time(NULL) + map->default_ttl; |
|
|
0 |
0 |
if (HM_UNLIKELY(map->expires_at && map->default_ttl > 0)) map->expires_at[index] = (uint32_t)time(NULL) + map->default_ttl; |
|
|
0 |
2 |
if (HM_UNLIKELY(map->expires_at && map->default_ttl > 0)) map->expires_at[index] = (uint32_t)time(NULL) + map->default_ttl; |
|
|
0 |
0 |
if (HM_UNLIKELY(map->expires_at && map->default_ttl > 0)) map->expires_at[index] = (uint32_t)time(NULL) + map->default_ttl; |
|
|
0 |
3 |
if (HM_UNLIKELY(map->expires_at && map->default_ttl > 0)) map->expires_at[index] = (uint32_t)time(NULL) + map->default_ttl; |
|
|
0 |
0 |
if (HM_UNLIKELY(map->expires_at && map->default_ttl > 0)) map->expires_at[index] = (uint32_t)time(NULL) + map->default_ttl; |
|
1833
|
0 |
2 |
if (map->max_size > 0 && map->size >= map->max_size) |
|
|
0 |
0 |
if (map->max_size > 0 && map->size >= map->max_size) |
|
|
0 |
2 |
if (map->max_size > 0 && map->size >= map->max_size) |
|
|
0 |
0 |
if (map->max_size > 0 && map->size >= map->max_size) |
|
|
0 |
1 |
if (map->max_size > 0 && map->size >= map->max_size) |
|
|
0 |
0 |
if (map->max_size > 0 && map->size >= map->max_size) |
|
1836
|
0 |
2 |
if ((map->size + map->tombstones) * 4 >= map->capacity * 3) { |
|
|
0 |
2 |
if ((map->size + map->tombstones) * 4 >= map->capacity * 3) { |
|
|
0 |
1 |
if ((map->size + map->tombstones) * 4 >= map->capacity * 3) { |
|
1837
|
0 |
0 |
if (map->max_size > 0 && map->tombstones > 0) { |
|
|
0 |
0 |
if (map->max_size > 0 && map->tombstones > 0) { |
|
|
0 |
0 |
if (map->max_size > 0 && map->tombstones > 0) { |
|
|
0 |
0 |
if (map->max_size > 0 && map->tombstones > 0) { |
|
|
0 |
0 |
if (map->max_size > 0 && map->tombstones > 0) { |
|
|
0 |
0 |
if (map->max_size > 0 && map->tombstones > 0) { |
|
1838
|
0 |
0 |
if (!HM_FN(compact)(map)) return false; |
|
|
0 |
0 |
if (!HM_FN(compact)(map)) return false; |
|
|
0 |
0 |
if (!HM_FN(compact)(map)) return false; |
|
1840
|
0 |
0 |
if (!HM_FN(resize)(map)) return false; |
|
|
0 |
0 |
if (!HM_FN(resize)(map)) return false; |
|
|
0 |
0 |
if (!HM_FN(resize)(map)) return false; |
|
1845
|
0 |
2 |
if (index >= map->capacity) return false; |
|
|
0 |
2 |
if (index >= map->capacity) return false; |
|
|
0 |
1 |
if (index >= map->capacity) return false; |
|
1848
|
0 |
2 |
if (HM_UNLIKELY(map->lru_prev)) HM_FN(lru_push_front)(map, (uint32_t)index); |
|
|
0 |
2 |
if (HM_UNLIKELY(map->lru_prev)) HM_FN(lru_push_front)(map, (uint32_t)index); |
|
|
0 |
1 |
if (HM_UNLIKELY(map->lru_prev)) HM_FN(lru_push_front)(map, (uint32_t)index); |
|
1849
|
0 |
2 |
if (HM_UNLIKELY(map->expires_at && map->default_ttl > 0)) map->expires_at[index] = (uint32_t)time(NULL) + map->default_ttl; |
|
|
0 |
0 |
if (HM_UNLIKELY(map->expires_at && map->default_ttl > 0)) map->expires_at[index] = (uint32_t)time(NULL) + map->default_ttl; |
|
|
0 |
2 |
if (HM_UNLIKELY(map->expires_at && map->default_ttl > 0)) map->expires_at[index] = (uint32_t)time(NULL) + map->default_ttl; |
|
|
0 |
0 |
if (HM_UNLIKELY(map->expires_at && map->default_ttl > 0)) map->expires_at[index] = (uint32_t)time(NULL) + map->default_ttl; |
|
|
0 |
1 |
if (HM_UNLIKELY(map->expires_at && map->default_ttl > 0)) map->expires_at[index] = (uint32_t)time(NULL) + map->default_ttl; |
|
|
0 |
0 |
if (HM_UNLIKELY(map->expires_at && map->default_ttl > 0)) map->expires_at[index] = (uint32_t)time(NULL) + map->default_ttl; |
|
1856
|
3 |
0 |
if (!map || !key || !out_value) return false; |
|
|
3 |
0 |
if (!map || !key || !out_value) return false; |
|
|
0 |
3 |
if (!map || !key || !out_value) return false; |
|
|
5006 |
0 |
if (!map || !key || !out_value) return false; |
|
|
5006 |
0 |
if (!map || !key || !out_value) return false; |
|
|
0 |
5006 |
if (!map || !key || !out_value) return false; |
|
|
5 |
0 |
if (!map || !key || !out_value) return false; |
|
|
5 |
0 |
if (!map || !key || !out_value) return false; |
|
|
0 |
5 |
if (!map || !key || !out_value) return false; |
|
1859
|
3 |
0 |
if (index < map->capacity && map->nodes[index].key != NULL && |
|
|
1 |
2 |
if (index < map->capacity && map->nodes[index].key != NULL && |
|
|
5006 |
0 |
if (index < map->capacity && map->nodes[index].key != NULL && |
|
|
2 |
5004 |
if (index < map->capacity && map->nodes[index].key != NULL && |
|
|
5 |
0 |
if (index < map->capacity && map->nodes[index].key != NULL && |
|
|
1 |
4 |
if (index < map->capacity && map->nodes[index].key != NULL && |
|
1860
|
0 |
2 |
map->nodes[index].key != HM_STR_TOMBSTONE) { |
|
|
0 |
5004 |
map->nodes[index].key != HM_STR_TOMBSTONE) { |
|
|
0 |
4 |
map->nodes[index].key != HM_STR_TOMBSTONE) { |
|
1862
|
0 |
2 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
|
0 |
0 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
|
0 |
5004 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
|
0 |
0 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
|
0 |
4 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
|
0 |
0 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
1863
|
0 |
0 |
(uint32_t)time(NULL) >= map->expires_at[index]) { |
|
|
0 |
0 |
(uint32_t)time(NULL) >= map->expires_at[index]) { |
|
|
0 |
0 |
(uint32_t)time(NULL) >= map->expires_at[index]) { |
|
1867
|
1 |
1 |
if (map->nodes[index].value == HM_INT_MIN) return false; |
|
|
2 |
5002 |
if (map->nodes[index].value == HM_INT_MIN) return false; |
|
|
1 |
3 |
if (map->nodes[index].value == HM_INT_MIN) return false; |
|
1869
|
0 |
1 |
if (HM_UNLIKELY(map->lru_prev)) HM_FN(lru_promote)(map, (uint32_t)index); |
|
|
0 |
5002 |
if (HM_UNLIKELY(map->lru_prev)) HM_FN(lru_promote)(map, (uint32_t)index); |
|
|
0 |
3 |
if (HM_UNLIKELY(map->lru_prev)) HM_FN(lru_promote)(map, (uint32_t)index); |
|
1870
|
0 |
1 |
if (HM_UNLIKELY(map->expires_at && map->default_ttl > 0)) map->expires_at[index] = (uint32_t)time(NULL) + map->default_ttl; |
|
|
0 |
0 |
if (HM_UNLIKELY(map->expires_at && map->default_ttl > 0)) map->expires_at[index] = (uint32_t)time(NULL) + map->default_ttl; |
|
|
0 |
5002 |
if (HM_UNLIKELY(map->expires_at && map->default_ttl > 0)) map->expires_at[index] = (uint32_t)time(NULL) + map->default_ttl; |
|
|
0 |
0 |
if (HM_UNLIKELY(map->expires_at && map->default_ttl > 0)) map->expires_at[index] = (uint32_t)time(NULL) + map->default_ttl; |
|
|
0 |
3 |
if (HM_UNLIKELY(map->expires_at && map->default_ttl > 0)) map->expires_at[index] = (uint32_t)time(NULL) + map->default_ttl; |
|
|
0 |
0 |
if (HM_UNLIKELY(map->expires_at && map->default_ttl > 0)) map->expires_at[index] = (uint32_t)time(NULL) + map->default_ttl; |
|
1875
|
0 |
1 |
if (map->max_size > 0 && map->size >= map->max_size) |
|
|
0 |
0 |
if (map->max_size > 0 && map->size >= map->max_size) |
|
|
0 |
2 |
if (map->max_size > 0 && map->size >= map->max_size) |
|
|
0 |
0 |
if (map->max_size > 0 && map->size >= map->max_size) |
|
|
0 |
1 |
if (map->max_size > 0 && map->size >= map->max_size) |
|
|
0 |
0 |
if (map->max_size > 0 && map->size >= map->max_size) |
|
1878
|
0 |
1 |
if ((map->size + map->tombstones) * 4 >= map->capacity * 3) { |
|
|
0 |
2 |
if ((map->size + map->tombstones) * 4 >= map->capacity * 3) { |
|
|
0 |
1 |
if ((map->size + map->tombstones) * 4 >= map->capacity * 3) { |
|
1879
|
0 |
0 |
if (map->max_size > 0 && map->tombstones > 0) { |
|
|
0 |
0 |
if (map->max_size > 0 && map->tombstones > 0) { |
|
|
0 |
0 |
if (map->max_size > 0 && map->tombstones > 0) { |
|
|
0 |
0 |
if (map->max_size > 0 && map->tombstones > 0) { |
|
|
0 |
0 |
if (map->max_size > 0 && map->tombstones > 0) { |
|
|
0 |
0 |
if (map->max_size > 0 && map->tombstones > 0) { |
|
1880
|
0 |
0 |
if (!HM_FN(compact)(map)) return false; |
|
|
0 |
0 |
if (!HM_FN(compact)(map)) return false; |
|
|
0 |
0 |
if (!HM_FN(compact)(map)) return false; |
|
1882
|
0 |
0 |
if (!HM_FN(resize)(map)) return false; |
|
|
0 |
0 |
if (!HM_FN(resize)(map)) return false; |
|
|
0 |
0 |
if (!HM_FN(resize)(map)) return false; |
|
1887
|
0 |
1 |
if (index >= map->capacity) return false; |
|
|
0 |
2 |
if (index >= map->capacity) return false; |
|
|
0 |
1 |
if (index >= map->capacity) return false; |
|
1889
|
0 |
1 |
if (HM_UNLIKELY(map->lru_prev)) HM_FN(lru_push_front)(map, (uint32_t)index); |
|
|
0 |
2 |
if (HM_UNLIKELY(map->lru_prev)) HM_FN(lru_push_front)(map, (uint32_t)index); |
|
|
0 |
1 |
if (HM_UNLIKELY(map->lru_prev)) HM_FN(lru_push_front)(map, (uint32_t)index); |
|
1890
|
0 |
1 |
if (HM_UNLIKELY(map->expires_at && map->default_ttl > 0)) map->expires_at[index] = (uint32_t)time(NULL) + map->default_ttl; |
|
|
0 |
0 |
if (HM_UNLIKELY(map->expires_at && map->default_ttl > 0)) map->expires_at[index] = (uint32_t)time(NULL) + map->default_ttl; |
|
|
0 |
2 |
if (HM_UNLIKELY(map->expires_at && map->default_ttl > 0)) map->expires_at[index] = (uint32_t)time(NULL) + map->default_ttl; |
|
|
0 |
0 |
if (HM_UNLIKELY(map->expires_at && map->default_ttl > 0)) map->expires_at[index] = (uint32_t)time(NULL) + map->default_ttl; |
|
|
0 |
1 |
if (HM_UNLIKELY(map->expires_at && map->default_ttl > 0)) map->expires_at[index] = (uint32_t)time(NULL) + map->default_ttl; |
|
|
0 |
0 |
if (HM_UNLIKELY(map->expires_at && map->default_ttl > 0)) map->expires_at[index] = (uint32_t)time(NULL) + map->default_ttl; |
|
1908
|
0 |
0 |
if (!map || HM_IS_RESERVED_KEY(key)) return map ? map->capacity : 0; |
|
|
0 |
0 |
if (!map || HM_IS_RESERVED_KEY(key)) return map ? map->capacity : 0; |
|
|
0 |
0 |
if (!map || HM_IS_RESERVED_KEY(key)) return map ? map->capacity : 0; |
|
|
0 |
0 |
if (!map || HM_IS_RESERVED_KEY(key)) return map ? map->capacity : 0; |
|
|
9 |
0 |
if (!map || HM_IS_RESERVED_KEY(key)) return map ? map->capacity : 0; |
|
|
9 |
0 |
if (!map || HM_IS_RESERVED_KEY(key)) return map ? map->capacity : 0; |
|
|
0 |
9 |
if (!map || HM_IS_RESERVED_KEY(key)) return map ? map->capacity : 0; |
|
|
0 |
0 |
if (!map || HM_IS_RESERVED_KEY(key)) return map ? map->capacity : 0; |
|
|
1 |
0 |
if (!map || HM_IS_RESERVED_KEY(key)) return map ? map->capacity : 0; |
|
|
1 |
0 |
if (!map || HM_IS_RESERVED_KEY(key)) return map ? map->capacity : 0; |
|
|
0 |
1 |
if (!map || HM_IS_RESERVED_KEY(key)) return map ? map->capacity : 0; |
|
|
0 |
0 |
if (!map || HM_IS_RESERVED_KEY(key)) return map ? map->capacity : 0; |
|
1910
|
0 |
0 |
if ((map->size + map->tombstones) * 4 >= map->capacity * 3) { |
|
|
0 |
9 |
if ((map->size + map->tombstones) * 4 >= map->capacity * 3) { |
|
|
0 |
1 |
if ((map->size + map->tombstones) * 4 >= map->capacity * 3) { |
|
1911
|
0 |
0 |
if (map->max_size > 0 && map->tombstones > 0) { |
|
|
0 |
0 |
if (map->max_size > 0 && map->tombstones > 0) { |
|
|
0 |
0 |
if (map->max_size > 0 && map->tombstones > 0) { |
|
|
0 |
0 |
if (map->max_size > 0 && map->tombstones > 0) { |
|
|
0 |
0 |
if (map->max_size > 0 && map->tombstones > 0) { |
|
|
0 |
0 |
if (map->max_size > 0 && map->tombstones > 0) { |
|
1912
|
0 |
0 |
if (!HM_FN(compact)(map)) return map->capacity; |
|
|
0 |
0 |
if (!HM_FN(compact)(map)) return map->capacity; |
|
|
0 |
0 |
if (!HM_FN(compact)(map)) return map->capacity; |
|
1914
|
0 |
0 |
if (!HM_FN(resize)(map)) return map->capacity; |
|
|
0 |
0 |
if (!HM_FN(resize)(map)) return map->capacity; |
|
|
0 |
0 |
if (!HM_FN(resize)(map)) return map->capacity; |
|
1920
|
0 |
0 |
if (index >= map->capacity) return map->capacity; |
|
|
0 |
9 |
if (index >= map->capacity) return map->capacity; |
|
|
0 |
1 |
if (index >= map->capacity) return map->capacity; |
|
1922
|
0 |
0 |
if (found) { |
|
|
3 |
6 |
if (found) { |
|
|
0 |
1 |
if (found) { |
|
1924
|
0 |
0 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
|
0 |
0 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
|
0 |
3 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
|
0 |
0 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
|
0 |
0 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
|
0 |
0 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
1925
|
0 |
0 |
(uint32_t)time(NULL) >= map->expires_at[index]) { |
|
|
0 |
0 |
(uint32_t)time(NULL) >= map->expires_at[index]) { |
|
|
0 |
0 |
(uint32_t)time(NULL) >= map->expires_at[index]) { |
|
1930
|
0 |
0 |
if (index >= map->capacity) return map->capacity; |
|
|
0 |
0 |
if (index >= map->capacity) return map->capacity; |
|
|
0 |
0 |
if (index >= map->capacity) return map->capacity; |
|
1934
|
0 |
0 |
if (found) { |
|
|
3 |
6 |
if (found) { |
|
|
0 |
1 |
if (found) { |
|
1936
|
0 |
0 |
if (HM_UNLIKELY(map->lru_prev)) HM_FN(lru_promote)(map, (uint32_t)index); |
|
|
0 |
3 |
if (HM_UNLIKELY(map->lru_prev)) HM_FN(lru_promote)(map, (uint32_t)index); |
|
|
0 |
0 |
if (HM_UNLIKELY(map->lru_prev)) HM_FN(lru_promote)(map, (uint32_t)index); |
|
1941
|
0 |
0 |
if (map->max_size > 0 && map->size >= map->max_size) { |
|
|
0 |
0 |
if (map->max_size > 0 && map->size >= map->max_size) { |
|
|
0 |
6 |
if (map->max_size > 0 && map->size >= map->max_size) { |
|
|
0 |
0 |
if (map->max_size > 0 && map->size >= map->max_size) { |
|
|
0 |
1 |
if (map->max_size > 0 && map->size >= map->max_size) { |
|
|
0 |
0 |
if (map->max_size > 0 && map->size >= map->max_size) { |
|
1944
|
0 |
0 |
if (index >= map->capacity) return map->capacity; |
|
|
0 |
0 |
if (index >= map->capacity) return map->capacity; |
|
|
0 |
0 |
if (index >= map->capacity) return map->capacity; |
|
1948
|
0 |
0 |
if (HM_UNLIKELY(entry_ttl > 0 && !map->expires_at)) { |
|
|
0 |
0 |
if (HM_UNLIKELY(entry_ttl > 0 && !map->expires_at)) { |
|
|
0 |
6 |
if (HM_UNLIKELY(entry_ttl > 0 && !map->expires_at)) { |
|
|
0 |
0 |
if (HM_UNLIKELY(entry_ttl > 0 && !map->expires_at)) { |
|
|
0 |
1 |
if (HM_UNLIKELY(entry_ttl > 0 && !map->expires_at)) { |
|
|
0 |
0 |
if (HM_UNLIKELY(entry_ttl > 0 && !map->expires_at)) { |
|
1950
|
0 |
0 |
if (!map->expires_at) return map->capacity; |
|
|
0 |
0 |
if (!map->expires_at) return map->capacity; |
|
|
0 |
0 |
if (!map->expires_at) return map->capacity; |
|
1956
|
0 |
0 |
if (def_val && def_len > 0) { |
|
|
0 |
0 |
if (def_val && def_len > 0) { |
|
|
6 |
0 |
if (def_val && def_len > 0) { |
|
|
6 |
0 |
if (def_val && def_len > 0) { |
|
|
1 |
0 |
if (def_val && def_len > 0) { |
|
|
1 |
0 |
if (def_val && def_len > 0) { |
|
1958
|
0 |
0 |
if (!new_val) return map->capacity; |
|
|
0 |
6 |
if (!new_val) return map->capacity; |
|
|
0 |
1 |
if (!new_val) return map->capacity; |
|
1961
|
0 |
0 |
new_val_len = HM_PACK_LEN(def_len, def_utf8); |
|
|
0 |
6 |
new_val_len = HM_PACK_LEN(def_len, def_utf8); |
|
|
0 |
1 |
new_val_len = HM_PACK_LEN(def_len, def_utf8); |
|
1962
|
0 |
0 |
} else if (def_val) { |
|
|
0 |
0 |
} else if (def_val) { |
|
|
0 |
0 |
} else if (def_val) { |
|
1964
|
0 |
0 |
if (!new_val) return map->capacity; |
|
|
0 |
0 |
if (!new_val) return map->capacity; |
|
|
0 |
0 |
if (!new_val) return map->capacity; |
|
1966
|
0 |
0 |
new_val_len = HM_PACK_LEN(0, def_utf8); |
|
|
0 |
0 |
new_val_len = HM_PACK_LEN(0, def_utf8); |
|
|
0 |
0 |
new_val_len = HM_PACK_LEN(0, def_utf8); |
|
1969
|
0 |
0 |
if (map->nodes[index].key == HM_TOMBSTONE_KEY) map->tombstones--; |
|
|
0 |
6 |
if (map->nodes[index].key == HM_TOMBSTONE_KEY) map->tombstones--; |
|
|
0 |
1 |
if (map->nodes[index].key == HM_TOMBSTONE_KEY) map->tombstones--; |
|
1975
|
0 |
0 |
if (HM_UNLIKELY(map->lru_prev)) HM_FN(lru_push_front)(map, (uint32_t)index); |
|
|
0 |
6 |
if (HM_UNLIKELY(map->lru_prev)) HM_FN(lru_push_front)(map, (uint32_t)index); |
|
|
0 |
1 |
if (HM_UNLIKELY(map->lru_prev)) HM_FN(lru_push_front)(map, (uint32_t)index); |
|
1976
|
0 |
0 |
if (map->expires_at) { |
|
|
0 |
6 |
if (map->expires_at) { |
|
|
0 |
1 |
if (map->expires_at) { |
|
1977
|
0 |
0 |
uint32_t ttl = entry_ttl > 0 ? entry_ttl : map->default_ttl; |
|
|
0 |
0 |
uint32_t ttl = entry_ttl > 0 ? entry_ttl : map->default_ttl; |
|
|
0 |
0 |
uint32_t ttl = entry_ttl > 0 ? entry_ttl : map->default_ttl; |
|
1978
|
0 |
0 |
if (ttl > 0) map->expires_at[index] = (uint32_t)time(NULL) + ttl; |
|
|
0 |
0 |
if (ttl > 0) map->expires_at[index] = (uint32_t)time(NULL) + ttl; |
|
|
0 |
0 |
if (ttl > 0) map->expires_at[index] = (uint32_t)time(NULL) + ttl; |
|
1987
|
4 |
0 |
if (!map || HM_IS_RESERVED_KEY(key)) return map ? map->capacity : 0; |
|
|
4 |
0 |
if (!map || HM_IS_RESERVED_KEY(key)) return map ? map->capacity : 0; |
|
|
0 |
4 |
if (!map || HM_IS_RESERVED_KEY(key)) return map ? map->capacity : 0; |
|
|
0 |
0 |
if (!map || HM_IS_RESERVED_KEY(key)) return map ? map->capacity : 0; |
|
|
2 |
0 |
if (!map || HM_IS_RESERVED_KEY(key)) return map ? map->capacity : 0; |
|
|
2 |
0 |
if (!map || HM_IS_RESERVED_KEY(key)) return map ? map->capacity : 0; |
|
|
0 |
2 |
if (!map || HM_IS_RESERVED_KEY(key)) return map ? map->capacity : 0; |
|
|
0 |
0 |
if (!map || HM_IS_RESERVED_KEY(key)) return map ? map->capacity : 0; |
|
|
2 |
0 |
if (!map || HM_IS_RESERVED_KEY(key)) return map ? map->capacity : 0; |
|
|
2 |
0 |
if (!map || HM_IS_RESERVED_KEY(key)) return map ? map->capacity : 0; |
|
|
0 |
2 |
if (!map || HM_IS_RESERVED_KEY(key)) return map ? map->capacity : 0; |
|
|
0 |
0 |
if (!map || HM_IS_RESERVED_KEY(key)) return map ? map->capacity : 0; |
|
1989
|
0 |
4 |
if ((map->size + map->tombstones) * 4 >= map->capacity * 3) { |
|
|
0 |
2 |
if ((map->size + map->tombstones) * 4 >= map->capacity * 3) { |
|
|
0 |
2 |
if ((map->size + map->tombstones) * 4 >= map->capacity * 3) { |
|
1990
|
0 |
0 |
if (map->max_size > 0 && map->tombstones > 0) { |
|
|
0 |
0 |
if (map->max_size > 0 && map->tombstones > 0) { |
|
|
0 |
0 |
if (map->max_size > 0 && map->tombstones > 0) { |
|
|
0 |
0 |
if (map->max_size > 0 && map->tombstones > 0) { |
|
|
0 |
0 |
if (map->max_size > 0 && map->tombstones > 0) { |
|
|
0 |
0 |
if (map->max_size > 0 && map->tombstones > 0) { |
|
1991
|
0 |
0 |
if (!HM_FN(compact)(map)) return map->capacity; |
|
|
0 |
0 |
if (!HM_FN(compact)(map)) return map->capacity; |
|
|
0 |
0 |
if (!HM_FN(compact)(map)) return map->capacity; |
|
1993
|
0 |
0 |
if (!HM_FN(resize)(map)) return map->capacity; |
|
|
0 |
0 |
if (!HM_FN(resize)(map)) return map->capacity; |
|
|
0 |
0 |
if (!HM_FN(resize)(map)) return map->capacity; |
|
1999
|
0 |
4 |
if (index >= map->capacity) return map->capacity; |
|
|
0 |
2 |
if (index >= map->capacity) return map->capacity; |
|
|
0 |
2 |
if (index >= map->capacity) return map->capacity; |
|
2001
|
2 |
2 |
if (found) { |
|
|
1 |
1 |
if (found) { |
|
|
1 |
1 |
if (found) { |
|
2002
|
1 |
1 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
|
1 |
0 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
|
1 |
0 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
|
1 |
0 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
|
1 |
0 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
|
1 |
0 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
2003
|
1 |
0 |
(uint32_t)time(NULL) >= map->expires_at[index]) { |
|
|
1 |
0 |
(uint32_t)time(NULL) >= map->expires_at[index]) { |
|
|
1 |
0 |
(uint32_t)time(NULL) >= map->expires_at[index]) { |
|
2007
|
0 |
1 |
if (index >= map->capacity) return map->capacity; |
|
|
0 |
1 |
if (index >= map->capacity) return map->capacity; |
|
|
0 |
1 |
if (index >= map->capacity) return map->capacity; |
|
2011
|
1 |
3 |
if (found) { |
|
|
0 |
2 |
if (found) { |
|
|
0 |
2 |
if (found) { |
|
2013
|
0 |
1 |
if (HM_UNLIKELY(map->lru_prev)) HM_FN(lru_promote)(map, (uint32_t)index); |
|
|
0 |
0 |
if (HM_UNLIKELY(map->lru_prev)) HM_FN(lru_promote)(map, (uint32_t)index); |
|
|
0 |
0 |
if (HM_UNLIKELY(map->lru_prev)) HM_FN(lru_promote)(map, (uint32_t)index); |
|
2017
|
0 |
3 |
if (map->max_size > 0 && map->size >= map->max_size) { |
|
|
0 |
0 |
if (map->max_size > 0 && map->size >= map->max_size) { |
|
|
0 |
2 |
if (map->max_size > 0 && map->size >= map->max_size) { |
|
|
0 |
0 |
if (map->max_size > 0 && map->size >= map->max_size) { |
|
|
0 |
2 |
if (map->max_size > 0 && map->size >= map->max_size) { |
|
|
0 |
0 |
if (map->max_size > 0 && map->size >= map->max_size) { |
|
2020
|
0 |
0 |
if (index >= map->capacity) return map->capacity; |
|
|
0 |
0 |
if (index >= map->capacity) return map->capacity; |
|
|
0 |
0 |
if (index >= map->capacity) return map->capacity; |
|
2024
|
0 |
3 |
if (HM_UNLIKELY(entry_ttl > 0 && !map->expires_at)) { |
|
|
0 |
0 |
if (HM_UNLIKELY(entry_ttl > 0 && !map->expires_at)) { |
|
|
0 |
2 |
if (HM_UNLIKELY(entry_ttl > 0 && !map->expires_at)) { |
|
|
0 |
0 |
if (HM_UNLIKELY(entry_ttl > 0 && !map->expires_at)) { |
|
|
0 |
2 |
if (HM_UNLIKELY(entry_ttl > 0 && !map->expires_at)) { |
|
|
0 |
0 |
if (HM_UNLIKELY(entry_ttl > 0 && !map->expires_at)) { |
|
2026
|
0 |
0 |
if (!map->expires_at) return map->capacity; |
|
|
0 |
0 |
if (!map->expires_at) return map->capacity; |
|
|
0 |
0 |
if (!map->expires_at) return map->capacity; |
|
2029
|
1 |
2 |
if (map->nodes[index].key == HM_TOMBSTONE_KEY) map->tombstones--; |
|
|
1 |
1 |
if (map->nodes[index].key == HM_TOMBSTONE_KEY) map->tombstones--; |
|
|
1 |
1 |
if (map->nodes[index].key == HM_TOMBSTONE_KEY) map->tombstones--; |
|
2034
|
0 |
3 |
if (HM_UNLIKELY(map->lru_prev)) HM_FN(lru_push_front)(map, (uint32_t)index); |
|
|
0 |
2 |
if (HM_UNLIKELY(map->lru_prev)) HM_FN(lru_push_front)(map, (uint32_t)index); |
|
|
0 |
2 |
if (HM_UNLIKELY(map->lru_prev)) HM_FN(lru_push_front)(map, (uint32_t)index); |
|
2035
|
2 |
1 |
if (map->expires_at) { |
|
|
2 |
0 |
if (map->expires_at) { |
|
|
2 |
0 |
if (map->expires_at) { |
|
2036
|
2 |
0 |
uint32_t ttl = entry_ttl > 0 ? entry_ttl : map->default_ttl; |
|
|
2 |
0 |
uint32_t ttl = entry_ttl > 0 ? entry_ttl : map->default_ttl; |
|
|
2 |
0 |
uint32_t ttl = entry_ttl > 0 ? entry_ttl : map->default_ttl; |
|
2037
|
2 |
0 |
if (ttl > 0) map->expires_at[index] = (uint32_t)time(NULL) + ttl; |
|
|
2 |
0 |
if (ttl > 0) map->expires_at[index] = (uint32_t)time(NULL) + ttl; |
|
|
2 |
0 |
if (ttl > 0) map->expires_at[index] = (uint32_t)time(NULL) + ttl; |
|
2046
|
15 |
0 |
if (!map || HM_IS_RESERVED_KEY(key)) return map ? map->capacity : 0; |
|
|
15 |
0 |
if (!map || HM_IS_RESERVED_KEY(key)) return map ? map->capacity : 0; |
|
|
0 |
15 |
if (!map || HM_IS_RESERVED_KEY(key)) return map ? map->capacity : 0; |
|
|
0 |
0 |
if (!map || HM_IS_RESERVED_KEY(key)) return map ? map->capacity : 0; |
|
|
3 |
0 |
if (!map || HM_IS_RESERVED_KEY(key)) return map ? map->capacity : 0; |
|
|
2 |
1 |
if (!map || HM_IS_RESERVED_KEY(key)) return map ? map->capacity : 0; |
|
|
0 |
2 |
if (!map || HM_IS_RESERVED_KEY(key)) return map ? map->capacity : 0; |
|
|
1 |
0 |
if (!map || HM_IS_RESERVED_KEY(key)) return map ? map->capacity : 0; |
|
|
3 |
0 |
if (!map || HM_IS_RESERVED_KEY(key)) return map ? map->capacity : 0; |
|
|
2 |
1 |
if (!map || HM_IS_RESERVED_KEY(key)) return map ? map->capacity : 0; |
|
|
0 |
2 |
if (!map || HM_IS_RESERVED_KEY(key)) return map ? map->capacity : 0; |
|
|
1 |
0 |
if (!map || HM_IS_RESERVED_KEY(key)) return map ? map->capacity : 0; |
|
2048
|
0 |
15 |
if ((map->size + map->tombstones) * 4 >= map->capacity * 3) { |
|
|
0 |
2 |
if ((map->size + map->tombstones) * 4 >= map->capacity * 3) { |
|
|
0 |
2 |
if ((map->size + map->tombstones) * 4 >= map->capacity * 3) { |
|
2049
|
0 |
0 |
if (map->max_size > 0 && map->tombstones > 0) { |
|
|
0 |
0 |
if (map->max_size > 0 && map->tombstones > 0) { |
|
|
0 |
0 |
if (map->max_size > 0 && map->tombstones > 0) { |
|
|
0 |
0 |
if (map->max_size > 0 && map->tombstones > 0) { |
|
|
0 |
0 |
if (map->max_size > 0 && map->tombstones > 0) { |
|
|
0 |
0 |
if (map->max_size > 0 && map->tombstones > 0) { |
|
2050
|
0 |
0 |
if (!HM_FN(compact)(map)) return map->capacity; |
|
|
0 |
0 |
if (!HM_FN(compact)(map)) return map->capacity; |
|
|
0 |
0 |
if (!HM_FN(compact)(map)) return map->capacity; |
|
2052
|
0 |
0 |
if (!HM_FN(resize)(map)) return map->capacity; |
|
|
0 |
0 |
if (!HM_FN(resize)(map)) return map->capacity; |
|
|
0 |
0 |
if (!HM_FN(resize)(map)) return map->capacity; |
|
2058
|
0 |
15 |
if (index >= map->capacity) return map->capacity; |
|
|
0 |
2 |
if (index >= map->capacity) return map->capacity; |
|
|
0 |
2 |
if (index >= map->capacity) return map->capacity; |
|
2060
|
5 |
10 |
if (found) { |
|
|
1 |
1 |
if (found) { |
|
|
1 |
1 |
if (found) { |
|
2061
|
1 |
4 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
|
1 |
0 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
|
0 |
1 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
|
0 |
0 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
|
0 |
1 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
|
0 |
0 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
2062
|
1 |
0 |
(uint32_t)time(NULL) >= map->expires_at[index]) { |
|
|
0 |
0 |
(uint32_t)time(NULL) >= map->expires_at[index]) { |
|
|
0 |
0 |
(uint32_t)time(NULL) >= map->expires_at[index]) { |
|
2066
|
0 |
1 |
if (index >= map->capacity) return map->capacity; |
|
|
0 |
0 |
if (index >= map->capacity) return map->capacity; |
|
|
0 |
0 |
if (index >= map->capacity) return map->capacity; |
|
2070
|
4 |
11 |
if (found) { |
|
|
1 |
1 |
if (found) { |
|
|
1 |
1 |
if (found) { |
|
2072
|
0 |
4 |
if (HM_UNLIKELY(map->lru_prev)) HM_FN(lru_promote)(map, (uint32_t)index); |
|
|
0 |
1 |
if (HM_UNLIKELY(map->lru_prev)) HM_FN(lru_promote)(map, (uint32_t)index); |
|
|
0 |
1 |
if (HM_UNLIKELY(map->lru_prev)) HM_FN(lru_promote)(map, (uint32_t)index); |
|
2076
|
4 |
7 |
if (map->max_size > 0 && map->size >= map->max_size) { |
|
|
1 |
3 |
if (map->max_size > 0 && map->size >= map->max_size) { |
|
|
0 |
1 |
if (map->max_size > 0 && map->size >= map->max_size) { |
|
|
0 |
0 |
if (map->max_size > 0 && map->size >= map->max_size) { |
|
|
0 |
1 |
if (map->max_size > 0 && map->size >= map->max_size) { |
|
|
0 |
0 |
if (map->max_size > 0 && map->size >= map->max_size) { |
|
2079
|
0 |
1 |
if (index >= map->capacity) return map->capacity; |
|
|
0 |
0 |
if (index >= map->capacity) return map->capacity; |
|
|
0 |
0 |
if (index >= map->capacity) return map->capacity; |
|
2083
|
0 |
11 |
if (HM_UNLIKELY(entry_ttl > 0 && !map->expires_at)) { |
|
|
0 |
0 |
if (HM_UNLIKELY(entry_ttl > 0 && !map->expires_at)) { |
|
|
0 |
1 |
if (HM_UNLIKELY(entry_ttl > 0 && !map->expires_at)) { |
|
|
0 |
0 |
if (HM_UNLIKELY(entry_ttl > 0 && !map->expires_at)) { |
|
|
0 |
1 |
if (HM_UNLIKELY(entry_ttl > 0 && !map->expires_at)) { |
|
|
0 |
0 |
if (HM_UNLIKELY(entry_ttl > 0 && !map->expires_at)) { |
|
2085
|
0 |
0 |
if (!map->expires_at) return map->capacity; |
|
|
0 |
0 |
if (!map->expires_at) return map->capacity; |
|
|
0 |
0 |
if (!map->expires_at) return map->capacity; |
|
2088
|
1 |
10 |
if (map->nodes[index].key == HM_TOMBSTONE_KEY) map->tombstones--; |
|
|
0 |
1 |
if (map->nodes[index].key == HM_TOMBSTONE_KEY) map->tombstones--; |
|
|
0 |
1 |
if (map->nodes[index].key == HM_TOMBSTONE_KEY) map->tombstones--; |
|
2093
|
4 |
7 |
if (HM_UNLIKELY(map->lru_prev)) HM_FN(lru_push_front)(map, (uint32_t)index); |
|
|
0 |
1 |
if (HM_UNLIKELY(map->lru_prev)) HM_FN(lru_push_front)(map, (uint32_t)index); |
|
|
0 |
1 |
if (HM_UNLIKELY(map->lru_prev)) HM_FN(lru_push_front)(map, (uint32_t)index); |
|
2094
|
2 |
9 |
if (map->expires_at) { |
|
|
0 |
1 |
if (map->expires_at) { |
|
|
0 |
1 |
if (map->expires_at) { |
|
2095
|
2 |
0 |
uint32_t ttl = entry_ttl > 0 ? entry_ttl : map->default_ttl; |
|
|
0 |
0 |
uint32_t ttl = entry_ttl > 0 ? entry_ttl : map->default_ttl; |
|
|
0 |
0 |
uint32_t ttl = entry_ttl > 0 ? entry_ttl : map->default_ttl; |
|
2096
|
1 |
1 |
if (ttl > 0) map->expires_at[index] = (uint32_t)time(NULL) + ttl; |
|
|
0 |
0 |
if (ttl > 0) map->expires_at[index] = (uint32_t)time(NULL) + ttl; |
|
|
0 |
0 |
if (ttl > 0) map->expires_at[index] = (uint32_t)time(NULL) + ttl; |
|
2111
|
9 |
0 |
if (!map || !key) return map ? map->capacity : 0; |
|
|
0 |
9 |
if (!map || !key) return map ? map->capacity : 0; |
|
|
0 |
0 |
if (!map || !key) return map ? map->capacity : 0; |
|
2113
|
0 |
9 |
if ((map->size + map->tombstones) * 4 >= map->capacity * 3) { |
|
2114
|
0 |
0 |
if (map->max_size > 0 && map->tombstones > 0) { |
|
|
0 |
0 |
if (map->max_size > 0 && map->tombstones > 0) { |
|
2115
|
0 |
0 |
if (!HM_FN(compact)(map)) return map->capacity; |
|
2117
|
0 |
0 |
if (!HM_FN(resize)(map)) return map->capacity; |
|
2123
|
0 |
9 |
if (index >= map->capacity) return map->capacity; |
|
2125
|
3 |
6 |
if (found) { |
|
2126
|
0 |
3 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
|
0 |
0 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
2127
|
0 |
0 |
(uint32_t)time(NULL) >= map->expires_at[index]) { |
|
2131
|
0 |
0 |
if (index >= map->capacity) return map->capacity; |
|
2135
|
3 |
6 |
if (found) { |
|
2137
|
0 |
3 |
if (HM_UNLIKELY(map->lru_prev)) HM_FN(lru_promote)(map, (uint32_t)index); |
|
2141
|
0 |
6 |
if (map->max_size > 0 && map->size >= map->max_size) { |
|
|
0 |
0 |
if (map->max_size > 0 && map->size >= map->max_size) { |
|
2144
|
0 |
0 |
if (index >= map->capacity) return map->capacity; |
|
2148
|
0 |
6 |
if (HM_UNLIKELY(entry_ttl > 0 && !map->expires_at)) { |
|
|
0 |
0 |
if (HM_UNLIKELY(entry_ttl > 0 && !map->expires_at)) { |
|
2150
|
0 |
0 |
if (!map->expires_at) return map->capacity; |
|
2155
|
0 |
6 |
if (!new_key) return map->capacity; |
|
2161
|
6 |
0 |
if (def_val && def_len > 0) { |
|
|
6 |
0 |
if (def_val && def_len > 0) { |
|
2163
|
0 |
6 |
if (!new_val) { free(new_key); return map->capacity; } |
|
2166
|
0 |
6 |
new_val_len = HM_PACK_LEN(def_len, def_utf8); |
|
2167
|
0 |
0 |
} else if (def_val) { |
|
2169
|
0 |
0 |
if (!new_val) { free(new_key); return map->capacity; } |
|
2171
|
0 |
0 |
new_val_len = HM_PACK_LEN(0, def_utf8); |
|
2174
|
0 |
6 |
if (HM_SLOT_IS_TOMBSTONE(&map->nodes[index])) map->tombstones--; |
|
2177
|
0 |
6 |
map->nodes[index].key_len = HM_PACK_LEN(key_len, key_utf8); |
|
2182
|
0 |
6 |
if (HM_UNLIKELY(map->lru_prev)) HM_FN(lru_push_front)(map, (uint32_t)index); |
|
2183
|
0 |
6 |
if (map->expires_at) { |
|
2184
|
0 |
0 |
uint32_t ttl = entry_ttl > 0 ? entry_ttl : map->default_ttl; |
|
2185
|
0 |
0 |
if (ttl > 0) map->expires_at[index] = (uint32_t)time(NULL) + ttl; |
|
2195
|
4 |
0 |
if (!map || !key) return map ? map->capacity : 0; |
|
|
0 |
4 |
if (!map || !key) return map ? map->capacity : 0; |
|
|
0 |
0 |
if (!map || !key) return map ? map->capacity : 0; |
|
2197
|
0 |
4 |
if ((map->size + map->tombstones) * 4 >= map->capacity * 3) { |
|
2198
|
0 |
0 |
if (map->max_size > 0 && map->tombstones > 0) { |
|
|
0 |
0 |
if (map->max_size > 0 && map->tombstones > 0) { |
|
2199
|
0 |
0 |
if (!HM_FN(compact)(map)) return map->capacity; |
|
2201
|
0 |
0 |
if (!HM_FN(resize)(map)) return map->capacity; |
|
2207
|
0 |
4 |
if (index >= map->capacity) return map->capacity; |
|
2209
|
2 |
2 |
if (found) { |
|
2210
|
1 |
1 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
|
1 |
0 |
if (HM_UNLIKELY(map->expires_at && map->expires_at[index]) && |
|
2211
|
1 |
0 |
(uint32_t)time(NULL) >= map->expires_at[index]) { |
|
2215
|
0 |
1 |
if (index >= map->capacity) return map->capacity; |
|
2219
|
1 |
3 |
if (found) { |
|
2221
|
0 |
1 |
if (HM_UNLIKELY(map->lru_prev)) HM_FN(lru_promote)(map, (uint32_t)index); |
|
2225
|
0 |
3 |
if (map->max_size > 0 && map->size >= map->max_size) { |
|
|
0 |
0 |
if (map->max_size > 0 && map->size >= map->max_size) { |
|
2228
|
0 |
0 |
if (index >= map->capacity) return map->capacity; |
|
2232
|
0 |
3 |
if (HM_UNLIKELY(entry_ttl > 0 && !map->expires_at)) { |
|
|
0 |
0 |
if (HM_UNLIKELY(entry_ttl > 0 && !map->expires_at)) { |
|
2234
|
0 |
0 |
if (!map->expires_at) return map->capacity; |
|
2238
|
0 |
3 |
if (!new_key) return map->capacity; |
|
2242
|
1 |
2 |
if (HM_SLOT_IS_TOMBSTONE(&map->nodes[index])) map->tombstones--; |
|
2245
|
0 |
3 |
map->nodes[index].key_len = HM_PACK_LEN(key_len, key_utf8); |
|
2249
|
0 |
3 |
if (HM_UNLIKELY(map->lru_prev)) HM_FN(lru_push_front)(map, (uint32_t)index); |
|
2250
|
2 |
1 |
if (map->expires_at) { |
|
2251
|
2 |
0 |
uint32_t ttl = entry_ttl > 0 ? entry_ttl : map->default_ttl; |
|
2252
|
2 |
0 |
if (ttl > 0) map->expires_at[index] = (uint32_t)time(NULL) + ttl; |