unsafe fn new_uninit_for_layout(size: usize, journal: &Journal<Self>) -> *mut u8 where Self: MemPool {
        log!(Self, White, "ALLOC", "{:?}", size);

        let mut log = Log::drop_on_abort(u64::MAX, 1, journal);
        let (p, off, len, z) = Self::pre_alloc(size);
        if p.is_null() {
            panic!("Memory exhausted");
        }
        Self::drop_on_failure(off, len, z);
        log.set(off, len, z);
        Self::perform(z);
        p
    }
/// Allocates new memory without copying data
Allocates new memory without copying data
Allocates new memory without copying data
unsafe fn new_uninit_for_layout(size: usize, journal: &Journal<Self>) -> *mut u8 where Self: MemPool {
        log!(Self, White, "ALLOC", "{:?}", size);
        let mut log = Log::drop_on_abort(u64::MAX, 1, journal);
        let (p, off, len, z) = Self::pre_alloc(size);
        if p.is_null() {
            panic!("Memory exhausted");
        }
        Self::drop_on_failure(off, len, z);
        log.set(off, len, z);
        Self::perform(z);
        p
    }
unsafe fn new_uninit_for_layout ( size : usize , journal : & Journal < Self > ) -> * mut u8 where Self : MemPool { log ! ( Self White " " " " size ) ; let mut log = Log :: drop_on_abort ( u64 :: MAX , 1 , journal ) ; let ( p , off , len , z ) = Self :: pre_alloc ( size ) ; if p . is_null ( ) { panic ! ( " " ) ; } Self :: drop_on_failure ( off , len , z ) ; log . set ( off , len , z ) ; Self :: perform ( z ) ; p }
Allocates new memory without copying data
Allocates new memory without copying data
size
usize
journal
&Journal<Self>