Skip to content

Commit

Permalink
commit
Browse files Browse the repository at this point in the history
  • Loading branch information
yamt committed Aug 9, 2023
1 parent d33e99e commit e30c556
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/instance.c
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,12 @@ instance_create_no_init(const struct module *m, struct instance **instp,
}
inst->module = m;

/*
* REVISIT: it would be more scalable to iterate over m->imports
* than looking up imports by per-sort indexes as the current
* implementation below does.
*/

uint32_t nfuncs = m->nimportedfuncs + m->nfuncs;
ret = VEC_RESIZE(inst->funcs, nfuncs);
if (ret != 0) {
Expand Down

0 comments on commit e30c556

Please sign in to comment.