mirror of
https://github.com/urbit/shrub.git
synced 2024-11-24 13:06:09 +03:00
u3: assert guard page invariants when saving snapshot
This commit is contained in:
parent
196bb4ae1f
commit
f7275b6e67
@ -613,6 +613,9 @@ _ce_patch_compose(void)
|
||||
|
||||
nor_w = (nwr_w + (pag_wiz_i - 1)) >> u3a_page;
|
||||
sou_w = (swu_w + (pag_wiz_i - 1)) >> u3a_page;
|
||||
|
||||
c3_assert( ((gar_pag_p >> u3a_page) >= nor_w)
|
||||
&& ((gar_pag_p >> u3a_page) <= (u3a_pages - (sou_w + 1))) );
|
||||
}
|
||||
|
||||
#ifdef U3_SNAPSHOT_VALIDATION
|
||||
|
Loading…
Reference in New Issue
Block a user