huge_node_locked don't have to unlock huge_mtx
in src/huge.c, after each call of huge_node_locked(), huge_mtx is already unlocked. don't unlock it twice (it is a undefined behaviour).
This commit is contained in:
parent
4581b97809
commit
eee27b2a38
@ -83,7 +83,6 @@ huge_node_locked(const void *ptr)
|
|||||||
node = extent_tree_ad_search(&huge, &key);
|
node = extent_tree_ad_search(&huge, &key);
|
||||||
assert(node != NULL);
|
assert(node != NULL);
|
||||||
assert(node->addr == ptr);
|
assert(node->addr == ptr);
|
||||||
malloc_mutex_unlock(&huge_mtx);
|
|
||||||
|
|
||||||
return (node);
|
return (node);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user