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:
@@ -25,7 +25,7 @@ mallocx_free(void) {
|
||||
}
|
||||
|
||||
TEST_BEGIN(test_malloc_vs_mallocx) {
|
||||
compare_funcs(10*1000*1000, 100*1000*1000, "malloc",
|
||||
compare_funcs(10 * 1000 * 1000, 100 * 1000 * 1000, "malloc",
|
||||
malloc_free, "mallocx", mallocx_free);
|
||||
}
|
||||
TEST_END
|
||||
@@ -53,14 +53,14 @@ malloc_sdallocx(void) {
|
||||
}
|
||||
|
||||
TEST_BEGIN(test_free_vs_dallocx) {
|
||||
compare_funcs(10*1000*1000, 100*1000*1000, "free", malloc_free,
|
||||
compare_funcs(10 * 1000 * 1000, 100 * 1000 * 1000, "free", malloc_free,
|
||||
"dallocx", malloc_dallocx);
|
||||
}
|
||||
TEST_END
|
||||
|
||||
TEST_BEGIN(test_dallocx_vs_sdallocx) {
|
||||
compare_funcs(10*1000*1000, 100*1000*1000, "dallocx", malloc_dallocx,
|
||||
"sdallocx", malloc_sdallocx);
|
||||
compare_funcs(10 * 1000 * 1000, 100 * 1000 * 1000, "dallocx",
|
||||
malloc_dallocx, "sdallocx", malloc_sdallocx);
|
||||
}
|
||||
TEST_END
|
||||
|
||||
@@ -94,7 +94,7 @@ malloc_sallocx_free(void) {
|
||||
}
|
||||
|
||||
TEST_BEGIN(test_mus_vs_sallocx) {
|
||||
compare_funcs(10*1000*1000, 100*1000*1000, "malloc_usable_size",
|
||||
compare_funcs(10 * 1000 * 1000, 100 * 1000 * 1000, "malloc_usable_size",
|
||||
malloc_mus_free, "sallocx", malloc_sallocx_free);
|
||||
}
|
||||
TEST_END
|
||||
@@ -116,17 +116,14 @@ malloc_nallocx_free(void) {
|
||||
}
|
||||
|
||||
TEST_BEGIN(test_sallocx_vs_nallocx) {
|
||||
compare_funcs(10*1000*1000, 100*1000*1000, "sallocx",
|
||||
compare_funcs(10 * 1000 * 1000, 100 * 1000 * 1000, "sallocx",
|
||||
malloc_sallocx_free, "nallocx", malloc_nallocx_free);
|
||||
}
|
||||
TEST_END
|
||||
|
||||
int
|
||||
main(void) {
|
||||
return test_no_reentrancy(
|
||||
test_malloc_vs_mallocx,
|
||||
test_free_vs_dallocx,
|
||||
test_dallocx_vs_sdallocx,
|
||||
test_mus_vs_sallocx,
|
||||
return test_no_reentrancy(test_malloc_vs_mallocx, test_free_vs_dallocx,
|
||||
test_dallocx_vs_sdallocx, test_mus_vs_sallocx,
|
||||
test_sallocx_vs_nallocx);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user