mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-07-23 21:23:06 +00:00
Reformat the codebase with the clang-format 18.
This commit is contained in:
@@ -2,8 +2,8 @@
|
||||
|
||||
TEST_BEGIN(test_pages_huge) {
|
||||
size_t alloc_size;
|
||||
bool commit;
|
||||
void *pages, *hugepage;
|
||||
bool commit;
|
||||
void *pages, *hugepage;
|
||||
|
||||
alloc_size = HUGEPAGE * 2 - PAGE;
|
||||
commit = true;
|
||||
@@ -11,11 +11,12 @@ TEST_BEGIN(test_pages_huge) {
|
||||
expect_ptr_not_null(pages, "Unexpected pages_map() error");
|
||||
|
||||
if (init_system_thp_mode == thp_mode_default) {
|
||||
hugepage = (void *)(ALIGNMENT_CEILING((uintptr_t)pages, HUGEPAGE));
|
||||
expect_b_ne(pages_huge(hugepage, HUGEPAGE), have_madvise_huge,
|
||||
"Unexpected pages_huge() result");
|
||||
expect_false(pages_nohuge(hugepage, HUGEPAGE),
|
||||
"Unexpected pages_nohuge() result");
|
||||
hugepage = (void *)(ALIGNMENT_CEILING(
|
||||
(uintptr_t)pages, HUGEPAGE));
|
||||
expect_b_ne(pages_huge(hugepage, HUGEPAGE), have_madvise_huge,
|
||||
"Unexpected pages_huge() result");
|
||||
expect_false(pages_nohuge(hugepage, HUGEPAGE),
|
||||
"Unexpected pages_nohuge() result");
|
||||
}
|
||||
|
||||
pages_unmap(pages, alloc_size);
|
||||
@@ -24,6 +25,5 @@ TEST_END
|
||||
|
||||
int
|
||||
main(void) {
|
||||
return test(
|
||||
test_pages_huge);
|
||||
return test(test_pages_huge);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user