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

remove Remotable/getInterfaceOf from vatPowers #2637

Closed
warner opened this issue Mar 14, 2021 · 0 comments · Fixed by #2639
Closed

remove Remotable/getInterfaceOf from vatPowers #2637

warner opened this issue Mar 14, 2021 · 0 comments · Fixed by #2639
Assignees
Labels
enhancement New feature or request SwingSet package: SwingSet

Comments

@warner
Copy link
Member

warner commented Mar 14, 2021

What is the Problem Being Solved?

Far/Remotable/getInterfaceOf can be correctly imported from @agoric/marshal: they no longer use a WeakMap, so the code that applies Far can safely import a different copy of marshal than the code that queries passStyleOf or getInterfaceOf.

As a result, we no longer need to supply vats with these functions through the vatPowers object, and we should remove them.

This will change swingset's src/kernel/vatManager/manager-local.js, supervisor-subprocess-xsnap.js, and others in that directory. I don't think we have any unit tests that still exercise the presence of vatPowers.getInterfaceOf (those should all have been converted to imports by now), but we should double check. We should also do a quick scan of the rest of the tree for references to vatPowers, or Far/getInterfaceOf that don't come from an import (maybe build a --list-files-without-matches with all the .js files that lack an import of @agoric/marshal, then search that list for uses of Far/etc).

@warner warner added enhancement New feature or request SwingSet package: SwingSet Small labels Mar 14, 2021
@warner warner self-assigned this Mar 14, 2021
warner added a commit that referenced this issue Mar 14, 2021
.. rather than being given them on `vatPowers`, since those are going away.

refs #2637
warner added a commit that referenced this issue Mar 14, 2021
Vat code should import these three from `@agoric/marshal` rather than pulling
them from `vatPowers`.

closes #2637
warner added a commit that referenced this issue Mar 14, 2021
Vat code should import these three from `@agoric/marshal` rather than pulling
them from `vatPowers`.

closes #2637
warner added a commit that referenced this issue Mar 15, 2021
.. rather than getting them from `vatPowers`, since those are going away.

refs #2637
warner added a commit that referenced this issue Mar 15, 2021
Vat code should import these three from `@agoric/marshal` rather than pulling
them from `vatPowers`.

closes #2637
warner added a commit that referenced this issue Mar 15, 2021
.. rather than getting them from `vatPowers`, since those are going away.

refs #2637
warner added a commit that referenced this issue Mar 15, 2021
Vat code should import these three from `@agoric/marshal` rather than pulling
them from `vatPowers`.

closes #2637
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request SwingSet package: SwingSet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant