Skip to content

Commit

Permalink
v3-migrate: ream before reclaiming bytecode caches (#608)
Browse files Browse the repository at this point in the history
Some ships migrating to vere-v3.0 experienced "loom: corrupt" when
reclaiming the bytecode caches when running the v3 migration. This PR
does fix the issue, but it may or may not be exactly right. @joemfb will
have to take a look.
  • Loading branch information
pkova authored Feb 20, 2024
2 parents 087984d + 144be48 commit d710d04
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/noun/v3/manage.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ u3m_v3_migrate()
u3R_v2 = &u3H_v2->rod_u;
u3R_v2->cap_p = u3R_v2->mat_p = u3a_v2_outa(u3H_v2);

u3R = (u3a_road*)u3R_v2;
u3H = (u3v_home*)u3H_v2;
u3a_ream();

// free bytecode caches in old road
u3j_v2_reclaim();
u3n_v2_reclaim();
Expand Down

0 comments on commit d710d04

Please sign in to comment.