Skip to content

Commit 6299940

Browse files
committed
Fix crash in CPU BuddyAllocator ~Page when block_ldlt throws
src/ssids/cpu/BuddyAllocator.hxx (spral::ssids::cpu::buddy_alloc_internal::Page::~Page): Remove invalid sanity check. When an exception is thrown, this condition is not satisfied.
1 parent 114a7fd commit 6299940

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/ssids/cpu/BuddyAllocator.hxx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,6 @@ public:
101101
#endif /* MEM_STATS */
102102
}
103103
~Page() noexcept(false) {
104-
if(next_ && head_[nlevel-1] != 0)
105-
throw std::runtime_error("outstanding allocations on cleanup\n");
106104
if(next_) {
107105
typename IntAllocTraits::allocator_type intAlloc(alloc_);
108106
IntAllocTraits::deallocate(intAlloc, next_, 1<<(nlevel-1));

0 commit comments

Comments
 (0)