Skip to content

Commit

Permalink
u3: moves u3a_ream (free-list adjustment) into v3 migration
Browse files Browse the repository at this point in the history
  • Loading branch information
joemfb committed Nov 9, 2023
1 parent 753d6aa commit efe1066
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 0 additions & 4 deletions pkg/noun/manage.c
Original file line number Diff line number Diff line change
Expand Up @@ -652,10 +652,6 @@ _find_home(void)
}
}

// XX move me
//
u3a_ream();

/* As a further guard against any sneaky loom corruption */
u3a_loom_sane();

Expand Down
1 change: 1 addition & 0 deletions pkg/noun/v3/allocate.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
# define u3R_v3 u3a_Road
# define u3a_v3_balign u3a_balign
# define u3a_v3_road u3a_road
# define u3a_v3_ream u3a_ream
# define u3a_v3_walign u3a_walign
# define u3a_v3_walloc u3a_walloc

Expand Down
3 changes: 3 additions & 0 deletions pkg/noun/v3/manage.c
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,9 @@ u3m_v3_migrate()
u3R_v3 = &u3H_v3->rod_u;
u3H_v3->ver_w = U3V_VER3;

// recalculate free lists
u3a_v3_ream();

// initialize persistent cache
u3R_v3->cax.per_p = u3h_v3_new_cache(u3C.per_w);

Expand Down

0 comments on commit efe1066

Please sign in to comment.