Skip to content
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

fix(swingset): gc-actions: new algorithm, update test #3296

Merged
merged 2 commits into from
Jun 12, 2021

Conversation

warner
Copy link
Member

@warner warner commented Jun 11, 2021

Implement the new algorithm to decide when a GC Action should be negated or
bypassed. This is intended to match the new contents of docs/garbage-collection.md .

refs #3106

@warner warner added the SwingSet package: SwingSet label Jun 11, 2021
@warner warner added this to the Testnet: Stress Test Phase milestone Jun 11, 2021
@warner warner requested a review from FUDCo June 11, 2021 08:18
@warner warner self-assigned this Jun 11, 2021
@warner warner force-pushed the 3109-new-gc-actions branch from 64de132 to a3a3f67 Compare June 11, 2021 22:53
Base automatically changed from 3109-cleanups to master June 11, 2021 23:23
Implement the new algorithm to decide when a GC Action should be negated or
bypassed.
@warner warner force-pushed the 3109-new-gc-actions branch from a3a3f67 to 6c85e21 Compare June 11, 2021 23:30
const owner = kernelKeeper.ownerOfKernelObject(kref);
if (owner) {
return kernelKeeper.getObjectRefCount(kref);
function filterAction(vatKeeper, action, type, kref) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This probably could use a comment explaining why the actions are being filtered, since the verb "filter" is pretty generic, i.e., what the respective meanings of the pre-filtration and post-filtration collections are supposed to be. I think what's happening is it's throwing away the actions that it's not actually going to perform this time through, but I'm not 100% sure my understanding is correct.

@warner warner requested a review from FUDCo June 12, 2021 01:54
Copy link
Contributor

@FUDCo FUDCo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This makes sense now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
SwingSet package: SwingSet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants