Crate gear_lazy_pages
source ·Expand description
Lazy-pages support.
In runtime data for program Wasm memory pages can be loaded in lazy manner.
All pages, which is supposed to be lazy, must be mprotected before program 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.
Structs§
Enums§
- Lazy-pages version.
Traits§
Functions§
- Set current wasm memory begin addr in global context
- Initialize lazy-pages for current thread.
- Protect lazy pages, after they had been unprotected.
- Unset lazy pages read/write protections.
- Returns vec of lazy-pages which has been accessed