pub(crate) const ACTIVE_CHUNK_METADATA_SPEC: SideMetadataSpec;
Expand description

Metadata spec for the active chunk byte

The active chunk metadata is used to track what chunks have been allocated by malloc() which is out of our control. We use this metadata later to generate sweep tasks for only the chunks which have live objects in them.

This metadata is mapped eagerly (as opposed to lazily like the others), hence a separate SideMetadata instance is required.

This is a global side metadata spec even though it is used only by MallocSpace as we require its space to be contiguous and mapped only once. Otherwise we risk overwriting the previous mapping.