(&self, ptr: *mut u8, layout: Layout)
| 785 | } |
| 786 | |
| 787 | unsafe fn dealloc(&self, ptr: *mut u8, layout: Layout) { |
| 788 | if let Some(profiler) = profiler() { |
| 789 | profiler.on_dealloc(ptr); |
| 790 | } |
| 791 | self.inner.dealloc(ptr, layout); |
| 792 | } |
| 793 | |
| 794 | unsafe fn realloc(&self, ptr: *mut u8, layout: Layout, new_size: usize) -> *mut u8 { |
| 795 | let next_ptr = self.inner.realloc(ptr, layout, new_size); |
nothing calls this directly
no test coverage detected