mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-04-29 06:12:11 +03:00
Fix a compilation error and an incorrect assertion.
This commit is contained in:
parent
99bd94fb65
commit
35e3fd9a63
1 changed files with 2 additions and 2 deletions
|
|
@ -130,7 +130,7 @@ chunk_recycle(arena_t *arena, extent_tree_t *chunks_szad,
|
|||
}
|
||||
malloc_mutex_unlock(&arena->chunks_mtx);
|
||||
|
||||
assert(!dalloc_node || node != NULL);
|
||||
assert(dalloc_node || node != NULL);
|
||||
if (dalloc_node && node != NULL)
|
||||
arena_node_dalloc(arena, node);
|
||||
if (*zero) {
|
||||
|
|
@ -299,7 +299,7 @@ chunk_alloc_wrapper(arena_t *arena, chunk_alloc_t *chunk_alloc, void *new_addr,
|
|||
if (ret == NULL)
|
||||
return (NULL);
|
||||
if (config_valgrind && chunk_alloc != chunk_alloc_default)
|
||||
JEMALLOC_VALGRIND_MAKE_MEM_UNDEFINED(chunk, chunksize);
|
||||
JEMALLOC_VALGRIND_MAKE_MEM_UNDEFINED(ret, chunksize);
|
||||
return (ret);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue