pub(crate) unsafe fn is_vo_bit_set_unsafe(
address: Address
) -> Option<ObjectReference>
Expand description
Check if an address can be turned directly into an object reference using the VO bit.
If so, return Some(object)
. Otherwise return None
. The caller needs to ensure the side
metadata for the VO bit for the object is accessed by only one thread.
The address
must be word-aligned.
§Safety
This is unsafe: check the comment on side_metadata::load