mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-07-05 21:37:18 +03:00
Remove obsolete (incorrect) assertions.
This regression was introduced by
88fef7ceda (Refactor huge_*() calls into
arena internals.), and went undetected because of the --enable-debug
regression.
This commit is contained in:
parent
02e5dcf39d
commit
cb9b44914e
2 changed files with 24 additions and 23 deletions
|
|
@ -983,7 +983,6 @@ arena_malloc(tsd_t *tsd, arena_t *arena, size_t size, bool zero,
|
|||
{
|
||||
|
||||
assert(size != 0);
|
||||
assert(size <= arena_maxclass);
|
||||
|
||||
arena = arena_choose(tsd, arena);
|
||||
if (unlikely(arena == NULL))
|
||||
|
|
@ -1031,7 +1030,6 @@ arena_salloc(const void *ptr, bool demote)
|
|||
index_t binind;
|
||||
|
||||
assert(ptr != NULL);
|
||||
assert(CHUNK_ADDR2BASE(ptr) != ptr);
|
||||
|
||||
chunk = (arena_chunk_t *)CHUNK_ADDR2BASE(ptr);
|
||||
if (likely(chunk != ptr)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue