Crate gear_lazy_pagessource ·
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.
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.
- Set current wasm memory begin addr in global context
- Protect lazy pages, after they had been unprotected.
- Unset lazy pages read/write protections.
- Returns vec of lazy-pages which has been accessed