A recode of malloc with mmap/munmap syscalls