(&self, ptr: *mut u8, layout: Layout, new_size: usize)
| 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); |
| 796 | if !next_ptr.is_null() { |
| 797 | let usable = self.inner.usable_size(next_ptr); |
| 798 | if let Some(profiler) = profiler() { |
| 799 | profiler.on_realloc(ptr, next_ptr, usable); |
| 800 | } |
| 801 | } |
| 802 | next_ptr |
| 803 | } |
| 804 | } |
| 805 | |
| 806 | thread_local! { |
nothing calls this directly
no test coverage detected