Skip to content

Commit

Permalink
Autoformat.
Browse files Browse the repository at this point in the history
  • Loading branch information
gunney1 committed Oct 6, 2024
1 parent ad231e4 commit 0c089b5
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/axom/core/memory_management.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,8 @@ inline T* reallocate(T* pointer, std::size_t n, int allocID) noexcept
auto foundAllocator = rm.getAllocator(pointer);
auto size = foundAllocator.getSize(pointer);
constexpr bool workAround = true;
if (workAround) {
if(workAround)
{
/*
This empty-buffer work-around addresses issue #1287 and PR
#1271. The reproducer is the immediate_ug_reserve test in
Expand All @@ -251,7 +252,9 @@ inline T* reallocate(T* pointer, std::size_t n, int allocID) noexcept
auto copysize = std::min(size, numbytes);
axom::copy(pointer, oldPointer, copysize);
axom::deallocate(oldPointer);
} else {
}
else
{
pointer = static_cast<T*>(rm.reallocate(pointer, numbytes));
}
}
Expand Down

0 comments on commit 0c089b5

Please sign in to comment.