-
Notifications
You must be signed in to change notification settings - Fork 215
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Execute vat creation and root object initialization in a crank #4575
Conversation
383e015
to
e0ec2fd
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice work! pretty minor updates to make
@@ -258,6 +279,10 @@ test.serial('bootstrap export', async t => { | |||
} | |||
|
|||
t.deepEqual(c.dump().log, []); | |||
for (let i = 0; i < 7; i += 1) { | |||
// eslint-disable-next-line no-await-in-loop | |||
await stepGC(); // vat starts |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
but not this
huh, with only 6 non-setup
vats, I'd expect the loop should need 6 iterations, not 7. And the deleted stepGC
below (the // dropExports
) one sort of correlates with that. But I'm guessing the test failed when you do 6 loops and retain the // dropExports
one?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm reopening this as I was just stung by this in my change to the run queue. Switching to 6
and restoring the second stepGC
below fixed the issue (after a while of tracing the diff).
@warner ready for re-review. I put all the changes in a separate commit for ease of reviewing. I'll squash it out when landing, assuming everything is OK. |
b355fea
to
1054d44
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
changes look great, rebase+squash and land.
…call and transcript logging Closes #2910
1054d44
to
2218e07
Compare
Run vat creation and initialization in a crank, so module initialization and
buildRootObject
have access to syscalls and have their actions logged in the vat transcript.Closes #2910