Constant mmtk::policy::marksweepspace::malloc_ms::metadata::ACTIVE_PAGE_METADATA_SPEC
source · pub(crate) const ACTIVE_PAGE_METADATA_SPEC: SideMetadataSpec;
Expand description
Metadata spec for the active page byte
The active page metadata is used to accurately track the total number of pages that have
been reserved by malloc()
.
We use a byte instead of a bit to avoid synchronization costs, i.e. to avoid the case where two threads try to update different bits in the same byte at the same time