Glossary coding Term Page

Heap Memory

Dynamically allocated memory used for flexible runtime data

heap #rust#memory#allocation
Korean version

Aliases

heap memoryheap

Prerequisites

Related Concepts

Core Idea

Heap memory is the dynamically allocated memory region used when data size or lifetime cannot stay fixed on the stack. Large, growable, or shared values often live on the heap while the stack keeps only a pointer or handle.

Why It Matters Here

Mathbong uses heap memory across String, Vec, smart pointers, and recursive structures. It is one of the most concrete places where Rust's ownership rules start to feel necessary instead of abstract.

Posts Mentioning This Concept