mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-08-01 16:10:30 +03:00
Reformat the codebase with the clang-format 18.
This commit is contained in:
parent
0a6215c171
commit
f1bba4a87c
346 changed files with 18286 additions and 17770 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue