mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-08-25 16:43:33 +03:00
Update brace style.
Add braces around single-line blocks, and remove line breaks before function-opening braces. This resolves #537.
This commit is contained in:
parent
5154ff32ee
commit
c4c2592c83
119 changed files with 2971 additions and 3572 deletions
|
|
@ -11,8 +11,7 @@ static bool have_dss =
|
|||
;
|
||||
|
||||
void *
|
||||
thd_start(void *arg)
|
||||
{
|
||||
thd_start(void *arg) {
|
||||
unsigned thread_ind = (unsigned)(uintptr_t)arg;
|
||||
unsigned arena_ind;
|
||||
void *p;
|
||||
|
|
@ -45,8 +44,7 @@ thd_start(void *arg)
|
|||
return (NULL);
|
||||
}
|
||||
|
||||
TEST_BEGIN(test_MALLOCX_ARENA)
|
||||
{
|
||||
TEST_BEGIN(test_MALLOCX_ARENA) {
|
||||
thd_t thds[NTHREADS];
|
||||
unsigned i;
|
||||
|
||||
|
|
@ -55,14 +53,14 @@ TEST_BEGIN(test_MALLOCX_ARENA)
|
|||
(void *)(uintptr_t)i);
|
||||
}
|
||||
|
||||
for (i = 0; i < NTHREADS; i++)
|
||||
for (i = 0; i < NTHREADS; i++) {
|
||||
thd_join(thds[i], NULL);
|
||||
}
|
||||
}
|
||||
TEST_END
|
||||
|
||||
int
|
||||
main(void)
|
||||
{
|
||||
main(void) {
|
||||
return (test(
|
||||
test_MALLOCX_ARENA));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue