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

feat(SwingSet): add "reachable" flag to clist entries #3130

Merged
merged 2 commits into from
May 21, 2021

Commits on May 21, 2021

  1. fix(SwingSet): enable getKeys('','') in blockBuffer/crankBuffer

    Previously, these two wrappers didn't provide the same functionality as their
    underlying HostStorage: you couldn't use empty strings for the start/end to
    get more keys.
    
    Also, add type assertions to crankBuffer to detect non-string keys/values
    earlier than commitCrank.
    warner committed May 21, 2021
    Configuration menu
    Copy the full SHA
    ff6af69 View commit details
    Browse the repository at this point in the history
  2. feat(SwingSet): add "reachable" flag to clist entries

    The kernel-to-vat clist entry for `kref` is stored in the kernelDB under a
    key of `${vatID}.c.${kref}` . This changes the value at that key from
    `${vref}` to `${flag} ${vref}`, where `flag` is either `R` (for "reachable
    and recognizable") or `_` (for "recognizable but not reachable). The "neither
    reachable nor recognizable" state simply deletes the clist entry altogether.
    
    This adds vatKeeper methods to set and clear the flag on a given kref. These
    will be used by the GC syscall handlers for dropImport and friends.
    
    closes #3108
    warner committed May 21, 2021
    Configuration menu
    Copy the full SHA
    4b843a8 View commit details
    Browse the repository at this point in the history