Skip to content

Commit

Permalink
Clangformat
Browse files Browse the repository at this point in the history
  • Loading branch information
mjp41 committed Jun 18, 2024
1 parent fa68811 commit f6ba0e0
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 10 deletions.
3 changes: 1 addition & 2 deletions src/snmalloc/backend/globalconfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,7 @@ namespace snmalloc
if (initialised)
return;

with(initialisation_lock,
[&]() {
with(initialisation_lock, [&]() {
#ifdef SNMALLOC_TRACING
message<1024>("Run init_impl");
#endif
Expand Down
1 change: 0 additions & 1 deletion src/snmalloc/backend_helpers/buddy.h
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,6 @@ namespace snmalloc
{
validate_block(addr, size);


if (remove_buddy(addr, size))
{
// Add to next level cache
Expand Down
7 changes: 2 additions & 5 deletions src/snmalloc/backend_helpers/lockrange.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,7 @@ namespace snmalloc
CapPtr<void, ChunkBounds> alloc_range(size_t size)
{
CapPtr<void, ChunkBounds> result;
with(spin_lock,
[&]() {
with(spin_lock, [&]() {
{
result = parent.alloc_range(size);
}
Expand All @@ -47,9 +46,7 @@ namespace snmalloc

void dealloc_range(CapPtr<void, ChunkBounds> base, size_t size)
{
with(spin_lock, [&]() {
parent.dealloc_range(base, size);
});
with(spin_lock, [&]() { parent.dealloc_range(base, size); });
}
};
};
Expand Down
2 changes: 1 addition & 1 deletion src/snmalloc/ds/singleton.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ namespace snmalloc

if (SNMALLOC_UNLIKELY(!initialised.load(std::memory_order_acquire)))
{
with (flag, [&](){
with(flag, [&]() {
if (!initialised)
{
init(&obj);
Expand Down
2 changes: 1 addition & 1 deletion src/snmalloc/pal/pal_consts.h
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ namespace snmalloc
* This Pal provides a millisecond time source
*/
Time = (1 << 5),

/**
* This Pal provides selective core dumps, so
* modify which parts get dumped.
Expand Down

0 comments on commit f6ba0e0

Please sign in to comment.