diff options
author | polwex <polwex@sortug.com> | 2025-10-06 17:07:33 +0700 |
---|---|---|
committer | polwex <polwex@sortug.com> | 2025-10-06 17:07:33 +0700 |
commit | a4615148975bed241ae26ffa2655dc9c407107d8 (patch) | |
tree | bd127b13f0027cd2870b8f016c5658465785d3df /vere/pkg/noun/vortex.c | |
parent | 256376afffe66faa239a6a6aaebb8f68a9c6cbe4 (diff) |
maybe now maybe now
Diffstat (limited to 'vere/pkg/noun/vortex.c')
-rw-r--r-- | vere/pkg/noun/vortex.c | 28 |
1 files changed, 21 insertions, 7 deletions
diff --git a/vere/pkg/noun/vortex.c b/vere/pkg/noun/vortex.c index 0d6d1cf..63b4fc2 100644 --- a/vere/pkg/noun/vortex.c +++ b/vere/pkg/noun/vortex.c @@ -25,14 +25,17 @@ u3v_home* u3v_Home; u3_noun u3v_life(u3_noun eve) { - c3_o is_null = u3r_sing(u3_nul, eve); - c3_o is_atom = u3a_is_atom(eve); - c3_o is_cell = u3du(eve); + u3l_log("u3f_life()"); + - u3l_log("u3v_life: eve=%s (atom=%s cell=%s)", - is_null ? "null" : (is_cell ? "cell" : "atom"), - is_atom ? "yes" : "no", - is_cell ? "yes" : "no"); + c3_o is_atom = u3a_is_atom(eve); + c3_d len_d; + { + u3_noun len = u3qb_lent(eve); + u3_assert( c3y == u3r_safe_chub(len, &len_d) ); + u3z(len); + } + u3l_log("u3v_life: processing %llu events", (unsigned long long)len_d); u3_noun lyf = u3nt(2, u3nc(0, 3), u3nc(0, 2)); u3_noun gat = u3n_nock_on(eve, lyf); @@ -48,6 +51,7 @@ u3v_life(u3_noun eve) c3_o u3v_boot(u3_noun eve) { + c3_d len_d; { u3_noun len = u3qb_lent(eve); @@ -105,8 +109,18 @@ _cv_lite(u3_noun pil) c3_o u3v_boot_lite(u3_noun pil) { + // ensure zero-initialized kernel // + c3_d len_d; + { + u3_noun len = u3qb_lent(pil); + u3_assert( c3y == u3r_safe_chub(len, &len_d) ); + u3z(len); + } + + u3l_log("u3v_boot_lite: processing %llu events", (unsigned long long)len_d); + u3A->roc = 0; { |