(size: usize, align: usize)
| 80 | } |
| 81 | |
| 82 | extern "C" fn calloc(size: usize, align: usize) -> *mut u8 { |
| 83 | // log::info!("alloc {} {}", size, align); |
| 84 | unsafe { ALLOCATOR.alloc(core::alloc::Layout::from_size_align(size, align).unwrap()) } |
| 85 | } |
| 86 | extern "C" fn cdalloc(ptr: *mut u8, size: usize, align: usize) { |
| 87 | // log::info!("dealloc {:?} {} {}", ptr, size, align); |
| 88 | unsafe { |