Esc

Scrap

structextensionsince 0.36.1Source
  • macOS: Scrap works on macOS
  • Linux: Scrap works on Linux
  • Windows: Scrap works on Windows
  • Wasm: Scrap works on Wasm

Declaration

Scrap :: struct {
    next: *Scrap;    size: s64;}

A dead region of the arena (an outgrown array buffer or a block tail) that later small allocations are served from. The link lives inside the dead memory itself.

See also