Function mmtk::util::memory::panic_if_unmapped
source · pub(crate) fn panic_if_unmapped(
_start: Address,
_size: usize,
_anno: &MmapAnnotation<'_>
)
Expand description
Checks if the memory has already been mapped. If not, we panic.
Note that the checking has a side effect that it will map the memory if it was unmapped. So we panic if it was unmapped. Be very careful about using this function.
This function is currently left empty for non-linux, and should be implemented in the future. As the function is only used for assertions, MMTk will still run even if we never panic.