Support dynamically allocated heaps