You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(swingset): partially implement syscall.dropImports and disavow
Vat code can now use `vatPowers.disavow(presence)` (if enabled for that vat),
which will invoke `syscall.dropImports`. The kernel will delete the entry
from the vat's c-list, however no further reference-count management will
occur (that is scheduled for #2646).
This should be enough to allow work to proceed on liveslots (using WeakRef and
FinalizationRegistry) in parallel with kernel-side improvements.
Note that referencing a disavowed object is vat-fatal, either as the target
of a message, the argument of a message, or the resolution of a promise.
closes#2635closes#2636
Copy file name to clipboardexpand all lines: packages/SwingSet/docs/vat-worker.md
+1
Original file line number
Diff line number
Diff line change
@@ -56,6 +56,7 @@ The VatManager is given access to a `VatSyscallHandler` function. This takes a `
56
56
*`['vatstoreGet', key]`
57
57
*`['vatstoreSet', key, data]`
58
58
*`['vatstoreDelete', key]`
59
+
*`['dropImports', slots]`
59
60
60
61
As with deliveries (but in reverse), the translator converts this from vat-centric identifiers into kernel-centric ones, and emits a `KernelSyscall` object, with one of these forms:
0 commit comments