This is the 6th lecture from the Essentials of Garbage Collectors class, devoted to the automatic memory management.
Before discussing algorithms of collecting the garbage, we need to see how these objects (which eventually become a garbage) are allocated on the heap. In today’s lecture we consider mechanisms of memory allocation.