@agoric/swingset-vat 0.32.3-dev-55d228c.0 → 0.32.3-dev-43543c3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agoric/swingset-vat",
|
|
3
|
-
"version": "0.32.3-dev-
|
|
3
|
+
"version": "0.32.3-dev-43543c3.0+43543c3",
|
|
4
4
|
"description": "Vat/Container Launcher",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "src/index.js",
|
|
@@ -27,17 +27,17 @@
|
|
|
27
27
|
"@types/yargs-parser": "^21.0.0"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@agoric/assert": "0.6.1-dev-
|
|
31
|
-
"@agoric/internal": "0.3.3-dev-
|
|
32
|
-
"@agoric/kmarshal": "0.1.1-dev-
|
|
33
|
-
"@agoric/store": "0.9.3-dev-
|
|
34
|
-
"@agoric/swing-store": "0.9.2-dev-
|
|
35
|
-
"@agoric/swingset-liveslots": "0.10.3-dev-
|
|
36
|
-
"@agoric/swingset-xsnap-supervisor": "0.10.3-dev-
|
|
37
|
-
"@agoric/time": "0.3.3-dev-
|
|
38
|
-
"@agoric/vat-data": "0.5.3-dev-
|
|
39
|
-
"@agoric/xsnap": "0.14.3-dev-
|
|
40
|
-
"@agoric/xsnap-lockdown": "0.14.1-dev-
|
|
30
|
+
"@agoric/assert": "0.6.1-dev-43543c3.0+43543c3",
|
|
31
|
+
"@agoric/internal": "0.3.3-dev-43543c3.0+43543c3",
|
|
32
|
+
"@agoric/kmarshal": "0.1.1-dev-43543c3.0+43543c3",
|
|
33
|
+
"@agoric/store": "0.9.3-dev-43543c3.0+43543c3",
|
|
34
|
+
"@agoric/swing-store": "0.9.2-dev-43543c3.0+43543c3",
|
|
35
|
+
"@agoric/swingset-liveslots": "0.10.3-dev-43543c3.0+43543c3",
|
|
36
|
+
"@agoric/swingset-xsnap-supervisor": "0.10.3-dev-43543c3.0+43543c3",
|
|
37
|
+
"@agoric/time": "0.3.3-dev-43543c3.0+43543c3",
|
|
38
|
+
"@agoric/vat-data": "0.5.3-dev-43543c3.0+43543c3",
|
|
39
|
+
"@agoric/xsnap": "0.14.3-dev-43543c3.0+43543c3",
|
|
40
|
+
"@agoric/xsnap-lockdown": "0.14.1-dev-43543c3.0+43543c3",
|
|
41
41
|
"@endo/base64": "^0.2.34",
|
|
42
42
|
"@endo/bundle-source": "^2.7.0",
|
|
43
43
|
"@endo/captp": "^3.1.4",
|
|
@@ -102,5 +102,5 @@
|
|
|
102
102
|
"typeCoverage": {
|
|
103
103
|
"atLeast": 75.26
|
|
104
104
|
},
|
|
105
|
-
"gitHead": "
|
|
105
|
+
"gitHead": "43543c3ce2f4ccb3b959b9ea3fb1c779b1f853e5"
|
|
106
106
|
}
|
|
@@ -17,6 +17,10 @@ export function makeStartSubprocessWorkerNode(
|
|
|
17
17
|
args.push('--cpu-prof-interval');
|
|
18
18
|
args.push('100');
|
|
19
19
|
args.push('--cpu-prof-name');
|
|
20
|
+
// cf. https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap03.html#tag_03_282
|
|
21
|
+
nameDisplayArg = nameDisplayArg
|
|
22
|
+
.replaceAll(':', '-')
|
|
23
|
+
.replaceAll(/[^a-z0-9._-]/gi, '_');
|
|
20
24
|
args.push(`CPU.${nameDisplayArg}.cpuprofile`);
|
|
21
25
|
}
|
|
22
26
|
if (debugVats.includes(vatID)) {
|
package/src/kernel/kernel.js
CHANGED
|
@@ -1750,6 +1750,15 @@ export default function buildKernel(
|
|
|
1750
1750
|
}
|
|
1751
1751
|
}
|
|
1752
1752
|
|
|
1753
|
+
function reapAllVats() {
|
|
1754
|
+
for (const [_, vatID] of kernelKeeper.getStaticVats()) {
|
|
1755
|
+
kernelKeeper.scheduleReap(vatID);
|
|
1756
|
+
}
|
|
1757
|
+
for (const vatID of kernelKeeper.getDynamicVats()) {
|
|
1758
|
+
kernelKeeper.scheduleReap(vatID);
|
|
1759
|
+
}
|
|
1760
|
+
}
|
|
1761
|
+
|
|
1753
1762
|
async function step() {
|
|
1754
1763
|
if (kernelPanic) {
|
|
1755
1764
|
throw kernelPanic;
|
|
@@ -1935,6 +1944,7 @@ export default function buildKernel(
|
|
|
1935
1944
|
step,
|
|
1936
1945
|
run,
|
|
1937
1946
|
shutdown,
|
|
1947
|
+
reapAllVats,
|
|
1938
1948
|
changeKernelOptions,
|
|
1939
1949
|
|
|
1940
1950
|
// the rest are for testing and debugging
|
package/src/types-external.js
CHANGED
|
@@ -155,7 +155,10 @@ export {};
|
|
|
155
155
|
* @typedef {{
|
|
156
156
|
* bundle: Bundle
|
|
157
157
|
* }} BundleRef
|
|
158
|
-
* @typedef {
|
|
158
|
+
* @typedef {{
|
|
159
|
+
* bundleName: string
|
|
160
|
+
* }} BundleName
|
|
161
|
+
* @typedef {(SourceSpec | BundleSpec | BundleRef | BundleName ) & {
|
|
159
162
|
* creationOptions?: Record<string, any>,
|
|
160
163
|
* parameters?: Record<string, any>,
|
|
161
164
|
* }} SwingSetConfigProperties
|