| 286 | } |
| 287 | |
| 288 | void cbm_registry_resolve_cache_begin(int estimated_capacity) { |
| 289 | if (_resolve_cache) { |
| 290 | cbm_ht_foreach(_resolve_cache, resolve_cache_free_entry, NULL); |
| 291 | cbm_ht_free(_resolve_cache); |
| 292 | _resolve_cache = NULL; |
| 293 | } |
| 294 | if (estimated_capacity < 32) |
| 295 | estimated_capacity = 32; |
| 296 | _resolve_cache = cbm_ht_create((uint32_t)estimated_capacity); |
| 297 | } |
| 298 | |
| 299 | void cbm_registry_resolve_cache_end(void) { |
| 300 | if (!_resolve_cache) |
no test coverage detected