The Allocator — Size Classes, the Tiny Allocator, and Scan vs Noscan
Understand how mallocgc places objects: size-class rounding, the tiny allocator, and why pointer-free allocations are cheaper for the GC — connecting allocation (Part I) to GC cost (Chapter 16).
This chapter is part of the paid launch. The preview stays visible so readers can evaluate the exact scope before buying.
Core, Complete, and Team. Complete also includes the practical exam and free Go-version updates.
What this chapter teaches
Allocating N bytes uses N bytes, and all allocations cost the GC the same.
mallocgc rounds every request up to a fixed size class, batches tiny pointer-free objects, and marks pointer-free (noscan) memory far more cheaply than pointer-containing memory.
Unlock Chapter 15 and the rest of the course.
Start with your email, then continue to Lemon Squeezy checkout. Core unlocks the paid chapters, Complete adds the exam and free Go-version updates, and Team gives you 5 seats.