Lines Matching defs:tsd
52 static bool ckh_grow(tsd_t *tsd, ckh_t *ckh);
53 static void ckh_shrink(tsd_t *tsd, ckh_t *ckh);
256 ckh_grow(tsd_t *tsd, ckh_t *ckh) {
282 tab = (ckhc_t *)ipallocztm(tsd_tsdn(tsd), usize, CACHELINE,
283 true, NULL, true, arena_ichoose(tsd, NULL));
295 idalloctm(tsd_tsdn(tsd), tab, NULL, NULL, true, true);
300 idalloctm(tsd_tsdn(tsd), ckh->tab, NULL, NULL, true, true);
311 ckh_shrink(tsd_t *tsd, ckh_t *ckh) {
326 tab = (ckhc_t *)ipallocztm(tsd_tsdn(tsd), usize, CACHELINE, true, NULL,
327 true, arena_ichoose(tsd, NULL));
342 idalloctm(tsd_tsdn(tsd), tab, NULL, NULL, true, true);
350 idalloctm(tsd_tsdn(tsd), ckh->tab, NULL, NULL, true, true);
359 ckh_new(tsd_t *tsd, ckh_t *ckh, size_t minitems, ckh_hash_t *ckh_hash,
403 ckh->tab = (ckhc_t *)ipallocztm(tsd_tsdn(tsd), usize, CACHELINE, true,
404 NULL, true, arena_ichoose(tsd, NULL));
416 ckh_delete(tsd_t *tsd, ckh_t *ckh) {
431 idalloctm(tsd_tsdn(tsd), ckh->tab, NULL, NULL, true, true);
466 ckh_insert(tsd_t *tsd, ckh_t *ckh, const void *key, const void *data) {
477 if (ckh_grow(tsd, ckh)) {
489 ckh_remove(tsd_t *tsd, ckh_t *ckh, const void *searchkey, void **key,
512 ckh_shrink(tsd, ckh);