mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-05-05 11:27:18 +03:00
Add arena-level name.
An arena-level name can help identify manual arenas.
This commit is contained in:
parent
a0734fd6ee
commit
ba19d2cb78
8 changed files with 146 additions and 9 deletions
|
|
@ -266,7 +266,7 @@
|
|||
#define expect_false(a, ...) expect_b_eq(a, false, __VA_ARGS__)
|
||||
|
||||
#define verify_str_eq(may_abort, a, b, ...) do { \
|
||||
if (strcmp((a), (b))) { \
|
||||
if (strcmp((a), (b)) != 0) { \
|
||||
char prefix[ASSERT_BUFSIZE]; \
|
||||
char message[ASSERT_BUFSIZE]; \
|
||||
malloc_snprintf(prefix, sizeof(prefix), \
|
||||
|
|
@ -284,7 +284,7 @@
|
|||
} while (0)
|
||||
|
||||
#define verify_str_ne(may_abort, a, b, ...) do { \
|
||||
if (!strcmp((a), (b))) { \
|
||||
if (strcmp((a), (b)) == 0) { \
|
||||
char prefix[ASSERT_BUFSIZE]; \
|
||||
char message[ASSERT_BUFSIZE]; \
|
||||
malloc_snprintf(prefix, sizeof(prefix), \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue