(&self, ptr: *mut u8, _layout: Layout)
| 43 | } |
| 44 | |
| 45 | unsafe fn dealloc(&self, ptr: *mut u8, _layout: Layout) { |
| 46 | let handle = self.handle.get_or_init(|| { |
| 47 | RtlCreateHeap( |
| 48 | HEAP_GROWABLE, |
| 49 | null_mut(), |
| 50 | 0, |
| 51 | 0, |
| 52 | null_mut() as _, |
| 53 | null_mut() as _, |
| 54 | ) |
| 55 | }); |
| 56 | RtlFreeHeap(*handle, 0, null_mut()); |
| 57 | } |
| 58 | } |
| 59 | |
| 60 | impl UserlandAllocator { |
nothing calls this directly
no outgoing calls
no test coverage detected