-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Enhancement] Remove the size assert of je_nallocx (#39293)
Signed-off-by: trueeyu <lxhhust350@qq.com> (cherry picked from commit b328767)
- Loading branch information
1 parent
5957043
commit 8a81c7c
Showing
2 changed files
with
12 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- src/jemalloc.c 2022-05-07 02:29:14.000000000 +0800 | ||
+++ src/jemalloc.c 2024-01-17 16:13:16.063123457 +0800 | ||
@@ -3960,8 +3960,6 @@ je_nallocx(size_t size, int flags) { | ||
size_t usize; | ||
tsdn_t *tsdn; | ||
|
||
- assert(size != 0); | ||
- | ||
if (unlikely(malloc_init())) { | ||
LOG("core.nallocx.exit", "result: %zu", ZU(0)); | ||
return 0; |