Slabbed hash table. Drops contention on hash table main lock.

git-svn-id: file:///svn/unbound/trunk@194 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
Wouter Wijngaards
2007-03-23 15:17:11 +00:00
parent 2092d6535a
commit f559c3c2ca
11 changed files with 711 additions and 12 deletions
+2 -1
View File
@@ -111,7 +111,7 @@ dname_to_buf(ldns_buffer* b, const char* str)
if(status != LDNS_STATUS_OK)
fatal_exit("%s ldns: %s", __func__,
ldns_get_errorstr_by_id(status));
ldns_rdf_free(rdf);
ldns_rdf_deep_free(rdf);
ldns_buffer_flip(b);
return b;
}
@@ -150,6 +150,7 @@ main(int argc, char* argv[])
alloc_test();
msgreply_test();
lruhash_test();
slabhash_test();
checklock_stop();
printf("%d tests succeeded\n", testcount);
return 0;