Skip to content

Commit

Permalink
remove wrong asaertion
Browse files Browse the repository at this point in the history
  • Loading branch information
kdy1 committed Jul 15, 2024
1 parent 7e5b2b3 commit 77e8b2a
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions crates/swc_allocator/src/alloc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -121,11 +121,6 @@ unsafe impl allocator_api2::alloc::Allocator for FastAlloc {
unsafe fn deallocate(&self, ptr: NonNull<u8>, layout: Layout) {
#[cfg(feature = "scoped")]
if self.alloc.is_some() {
debug_assert!(
ALLOC.get().is_some(),
"Deallocating a pointer allocated with arena mode with a non-arena mode allocator"
);

self.with_allocator(|alloc, _| alloc.deallocate(ptr, layout));
return;
}
Expand Down

0 comments on commit 77e8b2a

Please sign in to comment.