Skip to content

Commit 124d376

Browse files
committed
refactor(allocator): remove unnecessary Send impl for FixedSizeAllocator (#12426)
Pure refactor. #12380 removed the `NonNull<u8>` from `FixedSizeAllocator`, so `FixedSizeAllocator` is now automatically `Send`. Remove redundant manual `Send` impl.
1 parent 10fe5f2 commit 124d376

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

crates/oxc_allocator/src/pool_fixed_size.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -337,10 +337,6 @@ pub unsafe fn free_fixed_size_allocator(metadata_ptr: NonNull<FixedSizeAllocator
337337
unsafe { System.dealloc(alloc_ptr.as_ptr(), ALLOC_LAYOUT) }
338338
}
339339

340-
// SAFETY: `Allocator` is `Send`.
341-
// Moving `alloc_ptr: NonNull<u8>` across threads along with the `Allocator` is safe.
342-
unsafe impl Send for FixedSizeAllocator {}
343-
344340
impl Allocator {
345341
/// Get pointer to the `FixedSizeAllocatorMetadata` for this [`Allocator`].
346342
///

0 commit comments

Comments
 (0)