Different memory allocation for kernel < 8