mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-07-23 17:17:19 +03:00
Miscellaneous s/chunk/extent/ updates.
This commit is contained in:
parent
a43db1c608
commit
c8c3cbdf47
8 changed files with 17 additions and 19 deletions
|
|
@ -1,6 +1,5 @@
|
|||
#include "test/jemalloc_test.h"
|
||||
|
||||
#define CHUNK 0x400000
|
||||
/* #define MAXALIGN ((size_t)UINT64_C(0x80000000000)) */
|
||||
#define MAXALIGN ((size_t)0x2000000LU)
|
||||
#define NITER 4
|
||||
|
|
|
|||
|
|
@ -1,6 +1,5 @@
|
|||
#include "test/jemalloc_test.h"
|
||||
|
||||
#define CHUNK 0x400000
|
||||
/* #define MAXALIGN ((size_t)UINT64_C(0x80000000000)) */
|
||||
#define MAXALIGN ((size_t)0x2000000LU)
|
||||
#define NITER 4
|
||||
|
|
|
|||
|
|
@ -625,7 +625,7 @@ TEST_END
|
|||
TEST_BEGIN(test_arenas_lextent_constants)
|
||||
{
|
||||
|
||||
#define TEST_ARENAS_HCHUNK_CONSTANT(t, name, expected) do { \
|
||||
#define TEST_ARENAS_LEXTENT_CONSTANT(t, name, expected) do { \
|
||||
t name; \
|
||||
size_t sz = sizeof(t); \
|
||||
assert_d_eq(mallctl("arenas.lextent.0."#name, &name, &sz, NULL, \
|
||||
|
|
@ -633,9 +633,9 @@ TEST_BEGIN(test_arenas_lextent_constants)
|
|||
assert_zu_eq(name, expected, "Incorrect "#name" size"); \
|
||||
} while (0)
|
||||
|
||||
TEST_ARENAS_HCHUNK_CONSTANT(size_t, size, LARGE_MINCLASS);
|
||||
TEST_ARENAS_LEXTENT_CONSTANT(size_t, size, LARGE_MINCLASS);
|
||||
|
||||
#undef TEST_ARENAS_HCHUNK_CONSTANT
|
||||
#undef TEST_ARENAS_LEXTENT_CONSTANT
|
||||
}
|
||||
TEST_END
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue