Skip to main content

WEB_RUST_REGION_BASE

Constant WEB_RUST_REGION_BASE 

Source
pub const WEB_RUST_REGION_BASE: u32 = _ /* 4_194_304u32 */;
Expand description

The first address that belongs to the Rust module.

Below it is the Kotlin module’s kotlin.wasm.unsafe allocator; at and above it are the Rust module’s data, stack and heap, which the linker is told with --global-base. Two allocators handing out addresses in one memory is the hazard: an overlap does not crash, it draws the wrong screen, so the Renderer checks which side of this line its own addresses fall on before it makes the first boundary call.