Clangformat

This commit is contained in:
Matthew Parkinson
2020-02-04 10:24:57 +00:00
parent 4b175fceeb
commit bad94e80d3
7 changed files with 15 additions and 15 deletions

View File

@@ -124,7 +124,7 @@ namespace snmalloc
void push_space(address_t start, size_t large_class)
{
void * p = pointer_cast<void>(start);
void* p = pointer_cast<void>(start);
if (large_class > 0)
PAL::template notify_using<YesZero>(p, OS_PAGE_SIZE);
else
@@ -249,7 +249,7 @@ namespace snmalloc
PAL::notify_not_using(pointer_cast<void>(end), p1 - end);
}
for (; end < bits::align_down(p1,align); end += size)
for (; end < bits::align_down(p1, align); end += size)
{
push_space(end, large_class);
}
@@ -409,13 +409,14 @@ namespace snmalloc
}
// Cross-reference largealloc's alloc() decommitted condition.
if ((decommit_strategy != DecommitNone)
&& (large_class != 0 || decommit_strategy == DecommitSuper))
if (
(decommit_strategy != DecommitNone) &&
(large_class != 0 || decommit_strategy == DecommitSuper))
{
size_t rsize = bits::one_at_bit(SUPERSLAB_BITS) << large_class;
memory_provider.notify_not_using(
pointer_offset(p, OS_PAGE_SIZE), rsize - OS_PAGE_SIZE);
pointer_offset(p, OS_PAGE_SIZE), rsize - OS_PAGE_SIZE);
}
stats.superslab_push();