Skip to main contentModule address_generator
Source use std::ops::Range; ๐ use rand::Rng; ๐ use rand::RngExt; ๐ use rustc_abi::Align; ๐ use rustc_abi::Size; ๐ use rustc_const_eval::interpret::InterpResult; ๐ use rustc_const_eval::interpret::interp_ok; ๐ use rustc_middle::err_exhaust; ๐ use rustc_middle::throw_exhaust; ๐
- AddressGenerator
- This provides the logic to generate addresses for memory allocations in a given address range.
- align_addr ๐
- Shifts
addr to make it aligned with align by rounding addr to the smallest multiple
of align that is larger or equal to addr