Changed allocation of code heap memory to split a continuous chunk into parts