Lines Matching defs:deallocate
13866 allocator.deallocate(
14214 self.deallocate(ptr, old_layout);
14235 unsafe fn deallocate(&self, ptr: NonNull<u8>, layout: Layout) {
14280 self.deallocate(ptr, old_layout);
14302 self.deallocate(ptr, old_layout);
14334 alloc.deallocate(ptr.cast().into(), layout)
14931 unsafe { self.alloc.deallocate(ptr, layout) }
16854 /// `String` which may then deallocate, reallocate or change the
20820 Global.deallocate(self.mem, self.layout);
20920 Global.deallocate(self.ptr.cast(), Layout::for_value(self.ptr.as_ref()));
21575 /// later) or to deallocate the weak count by dropping the `Weak<T>`.
21791 Global.deallocate(self.ptr.cast(), Layout::for_value_raw(self.ptr.as_ptr()));
24472 Global.deallocate(self.mem, self.layout);
24987 /// later) or to deallocate the weak count by dropping the `Weak<T>`.
25293 // deallocate the data entirely. See the discussion in Arc::drop() about
25304 unsafe { Global.deallocate(self.ptr.cast(), Layout::for_value_raw(self.ptr.as_ptr())) }
34044 /// This is the only way to deallocate the remainder of a tree after
38318 Global.deallocate(
38508 Global.deallocate(top.cast(), Layout::new::<InternalNode<K, V>>());
39193 Global.deallocate(right_node.node.cast(), Layout::new::<InternalNode<K, V>>());
39195 Global.deallocate(right_node.node.cast(), Layout::new::<LeafNode<K, V>>());
47087 /// own memory-backed collection), be sure to deallocate this memory by using
47278 /// `Vec<T>` which may then deallocate, reallocate or change the
47416 /// `Vec<T>` which may then deallocate, reallocate or change the
50160 Global.deallocate(ptr.as_non_null_ptr(), layout);
51070 /// alloc.deallocate(non_null.cast(), Layout::new::<String>());
51902 unsafe fn deallocate(&self, ptr: NonNull<u8>, layout: Layout) {
51903 unsafe { Global.deallocate(ptr, layout) }