mirror of
https://github.com/NLnetLabs/unbound.git
synced 2025-12-20 23:00:56 -05:00
Compiletest fix alloc.c
git-svn-id: file:///svn/unbound/trunk@302 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
parent
bdebd1bf7f
commit
5e409a8e75
2 changed files with 7 additions and 3 deletions
|
|
@ -5,6 +5,8 @@
|
|||
- tpkg test for retry in TCP mode, against ldns-testns server.
|
||||
- daemon checks max number of open files and complains if not enough.
|
||||
- test where data expires in the cache.
|
||||
- compiletests: fixed empty body ifstatements in alloc.c, in case
|
||||
locks are disabled.
|
||||
|
||||
8 May 2007: Wouter
|
||||
- outgoing network keeps list of available tcp buffers for outgoing
|
||||
|
|
|
|||
|
|
@ -208,8 +208,9 @@ alloc_special_release(struct alloc_cache* alloc, alloc_special_t* mem)
|
|||
log_assert(alloc);
|
||||
if(!mem)
|
||||
return;
|
||||
if(!alloc->super) /* superalloc needs locking */
|
||||
lock_quick_lock(&alloc->lock);
|
||||
if(!alloc->super) {
|
||||
lock_quick_lock(&alloc->lock); /* superalloc needs locking */
|
||||
}
|
||||
|
||||
alloc_special_clean(mem);
|
||||
if(alloc->super && alloc->num_quar >= ALLOC_SPECIAL_MAX) {
|
||||
|
|
@ -221,8 +222,9 @@ alloc_special_release(struct alloc_cache* alloc, alloc_special_t* mem)
|
|||
alloc_set_special_next(mem, alloc->quar);
|
||||
alloc->quar = mem;
|
||||
alloc->num_quar++;
|
||||
if(!alloc->super)
|
||||
if(!alloc->super) {
|
||||
lock_quick_unlock(&alloc->lock);
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
|||
Loading…
Reference in a new issue