mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-04-16 23:51:44 +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
|
|
@ -6,9 +6,10 @@ allocated(void) {
|
|||
return 0;
|
||||
}
|
||||
uint64_t allocated;
|
||||
size_t sz = sizeof(allocated);
|
||||
expect_d_eq(mallctl("thread.allocated", (void *)&allocated, &sz, NULL,
|
||||
0), 0, "Unexpected mallctl failure");
|
||||
size_t sz = sizeof(allocated);
|
||||
expect_d_eq(
|
||||
mallctl("thread.allocated", (void *)&allocated, &sz, NULL, 0), 0,
|
||||
"Unexpected mallctl failure");
|
||||
return allocated;
|
||||
}
|
||||
|
||||
|
|
@ -18,9 +19,10 @@ deallocated(void) {
|
|||
return 0;
|
||||
}
|
||||
uint64_t deallocated;
|
||||
size_t sz = sizeof(deallocated);
|
||||
expect_d_eq(mallctl("thread.deallocated", (void *)&deallocated, &sz,
|
||||
NULL, 0), 0, "Unexpected mallctl failure");
|
||||
size_t sz = sizeof(deallocated);
|
||||
expect_d_eq(
|
||||
mallctl("thread.deallocated", (void *)&deallocated, &sz, NULL, 0),
|
||||
0, "Unexpected mallctl failure");
|
||||
return deallocated;
|
||||
}
|
||||
|
||||
|
|
@ -43,6 +45,5 @@ TEST_BEGIN(test_realloc_alloc) {
|
|||
TEST_END
|
||||
int
|
||||
main(void) {
|
||||
return test(
|
||||
test_realloc_alloc);
|
||||
return test(test_realloc_alloc);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue