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§
- Error
- Init
Error - Lazy
Pages Error - Lazy
Pages Version - Lazy-pages version.
Traits§
Functions§
- change_
wasm_ mem_ addr_ and_ size - Set current wasm memory begin addr in global context
- init
- init_
with_ handler - Initialize lazy-pages for current thread.
- initialize_
for_ program - pre_
process_ memory_ accesses - set_
lazy_ pages_ protection - Protect lazy pages, after they had been unprotected.
- status
- unset_
lazy_ pages_ protection - Unset lazy pages read/write protections.
- write_
accessed_ pages - Returns vec of lazy-pages which has been accessed