| 1 | #include "test/jemalloc_test.h" |
| 2 | |
| 3 | static unsigned |
| 4 | get_nsizes_impl(const char *cmd) { |
| 5 | unsigned ret; |
| 6 | size_t z; |
| 7 | |
| 8 | z = sizeof(unsigned); |
| 9 | assert_d_eq(mallctl(cmd, (void *)&ret, &z, NULL, 0), 0, |
| 10 | "Unexpected mallctl(\"%s\", ...) failure", cmd); |
| 11 | |
| 12 | return ret; |
| 13 | } |
| 14 | |
| 15 | static unsigned |
| 16 | get_nlarge(void) { |