mmtk::util::object_forwarding

Function forwarding_bits_offset_in_forwarding_pointer

source
pub(super) fn forwarding_bits_offset_in_forwarding_pointer<VM: VMBinding>() -> Option<isize>
Expand description

(This function is only used internal to the util module)

This function checks whether the forwarding pointer and forwarding bits can be written in the same atomic operation.

Returns None if this is not possible. Otherwise, returns Some(shift), where shift is the left shift needed on forwarding bits.