Function mmtk::util::metadata::side_metadata::helpers::try_mmap_contiguous_metadata_space
source · pub(super) fn try_mmap_contiguous_metadata_space(
start: Address,
size: usize,
spec: &SideMetadataSpec,
no_reserve: bool
) -> Result<usize>
Expand description
Tries to mmap the metadata space (spec
) for the specified data address range (start
and size
).
Setting no_reserve
to true means the function will only map address range, without reserving swap-space/physical memory.
Returns the size in bytes that gets mmapped in the function if success.