mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-05-16 09:56:22 +03:00
Refactor init_system_thp_mode and print it in malloc stats.
This commit is contained in:
parent
ca4f2ecaa8
commit
97e8f2aafd
6 changed files with 63 additions and 22 deletions
|
|
@ -10,7 +10,7 @@ TEST_BEGIN(test_pages_huge) {
|
|||
pages = pages_map(NULL, alloc_size, PAGE, &commit);
|
||||
expect_ptr_not_null(pages, "Unexpected pages_map() error");
|
||||
|
||||
if (init_system_thp_mode == thp_mode_default) {
|
||||
if (init_system_thp_mode == system_thp_mode_madvise) {
|
||||
hugepage = (void *)(ALIGNMENT_CEILING(
|
||||
(uintptr_t)pages, HUGEPAGE));
|
||||
expect_b_ne(pages_huge(hugepage, HUGEPAGE), have_madvise_huge,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue