heap memory

The pool of memory from which a program allocates objects at run time; objects there can live anywhere and outlive the function that made them.

In more detail

Linked-list nodes are scattered across heap memory and connected by pointers rather than sitting side by side. Despite the name, heap memory has nothing to do with the heap data structure used for priority queues. In Python, every object lives on the heap and is freed by garbage collection.

Related terms

Taught in

References