Skip to content

Commit

Permalink
fix(SwingSet): Restore LRU cache flushing when stopping a vat
Browse files Browse the repository at this point in the history
Fixes #6604
  • Loading branch information
gibson042 committed Dec 9, 2022
1 parent f432681 commit b5e845e
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions packages/SwingSet/src/liveslots/stop-vat.js
Original file line number Diff line number Diff line change
Expand Up @@ -317,8 +317,13 @@ export async function releaseOldState(tools) {
identifyExportedFacets(abandonedVrefSet, tools);
abandonExports(abandonedVrefSet, tools);

/* Disabling the rest of this in the interest of stop-vat performance. We
* expect that in the fullness of time the following will be superseded by a
// bringOutYourDead remains to ensure that the LRU cache is flushed,
// but the rest of this function has been disabled to improve stop-vat
// performance.
// eslint-disable-next-line no-use-before-define
await tools.bringOutYourDead();

/* We expect that in the fullness of time the following will be superseded by a
* post-upgrade scavenger process that cleans up dead database debris
* incrementally, rather than taking the hit of a potentially large delay at
* shutdown time. If that change happens, the below code can simply be
Expand Down

0 comments on commit b5e845e

Please sign in to comment.