Crate gear_lazy_pages

source ·
Expand description

Lazy-pages support. In runtime data for contract wasm memory pages can be loaded in lazy manner. All pages, which is supposed to be lazy, must be mprotected before contract execution. During execution data from storage is loaded for all pages, which has been accessed and which has data in storage. See also process::process_lazy_pages, signal, host_func for more information.

Note: currently we restrict twice write signal from same page during one execution. It’s not necessary behavior, but more simple and safe.