@ai-ecoverse/slicc-kernel 1.124.11 → 1.124.12
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/README.md +1 -1
- package/dist/kernel-worker.js +5 -1
- package/dist/kernel-worker.js.map +2 -2
- package/dist/node-process-worker.js +19 -6
- package/dist/node-process-worker.js.map +2 -2
- package/dist/node.js +5 -1
- package/dist/node.js.map +2 -2
- package/dist/process-worker.js +19 -6
- package/dist/process-worker.js.map +2 -2
- package/package.json +1 -1
package/dist/process-worker.js
CHANGED
|
@@ -1120,7 +1120,7 @@ function createSyncSabTransport(sab, port2, deps = {}) {
|
|
|
1120
1120
|
return;
|
|
1121
1121
|
}
|
|
1122
1122
|
const remaining = deadline - now();
|
|
1123
|
-
if (remaining <= 0) throw syncError("
|
|
1123
|
+
if (remaining <= 0) throw syncError("EIO", label);
|
|
1124
1124
|
wait2(header, SAB_I_PUB, published, remaining);
|
|
1125
1125
|
}
|
|
1126
1126
|
}
|
|
@@ -1129,7 +1129,6 @@ function createSyncSabTransport(sab, port2, deps = {}) {
|
|
|
1129
1129
|
if (deps.memory) publishMemory(sab, deps.memory());
|
|
1130
1130
|
const id = ++seq;
|
|
1131
1131
|
calls += Number(!PATH_OPS.has(req.op));
|
|
1132
|
-
const deadline = now() + timeoutMs2;
|
|
1133
1132
|
let out = null;
|
|
1134
1133
|
let status2 = 0;
|
|
1135
1134
|
let offset = 0;
|
|
@@ -1144,7 +1143,7 @@ function createSyncSabTransport(sab, port2, deps = {}) {
|
|
|
1144
1143
|
} catch {
|
|
1145
1144
|
throw syncError("EIO", label);
|
|
1146
1145
|
}
|
|
1147
|
-
awaitReady(id,
|
|
1146
|
+
awaitReady(id, now() + timeoutMs2, label);
|
|
1148
1147
|
const total = loadU53(header, SAB_I_TOTAL, SAB_I_TOTAL_HI);
|
|
1149
1148
|
const chunk = Atomics.load(header, SAB_I_CHUNK);
|
|
1150
1149
|
const at = loadU53(header, SAB_I_OFFSET, SAB_I_OFFSET_HI);
|
|
@@ -1178,7 +1177,8 @@ function createSyncFsSabBridge(transport, opts = {}) {
|
|
|
1178
1177
|
let last = null;
|
|
1179
1178
|
function run(req, path, transfer) {
|
|
1180
1179
|
last = null;
|
|
1181
|
-
const
|
|
1180
|
+
const silence = READ_ONLY.has(req.op) ? timeoutMs2 : Number.POSITIVE_INFINITY;
|
|
1181
|
+
const result = transport.call(req, silence, `sync-sab bridge, '${path}'`, transfer);
|
|
1182
1182
|
if (!result.ok) throw errnoError(result.errno, path);
|
|
1183
1183
|
return result;
|
|
1184
1184
|
}
|
|
@@ -1340,7 +1340,7 @@ function createSyncFsSabBridge(transport, opts = {}) {
|
|
|
1340
1340
|
statfs: (path = "/") => parseSyncFsUsage(json2({ op: "statfs", path }, path))
|
|
1341
1341
|
};
|
|
1342
1342
|
}
|
|
1343
|
-
var PATH_OPS, calls, looks, SPIN_MS, SPIN_STRIDE, SPIN_STRIDES, SPIN_CORES, spinning, SPIN_CAP_MS;
|
|
1343
|
+
var PATH_OPS, READ_ONLY, calls, looks, SPIN_MS, SPIN_STRIDE, SPIN_STRIDES, SPIN_CORES, spinning, SPIN_CAP_MS;
|
|
1344
1344
|
var init_sync_sab_bridge = __esm({
|
|
1345
1345
|
"src/realm/sync-sab-bridge.ts"() {
|
|
1346
1346
|
"use strict";
|
|
@@ -1349,6 +1349,19 @@ var init_sync_sab_bridge = __esm({
|
|
|
1349
1349
|
init_sync_fs_wire();
|
|
1350
1350
|
init_sync_sab_wire();
|
|
1351
1351
|
PATH_OPS = new Set(SYNC_FS_OPS);
|
|
1352
|
+
READ_ONLY = /* @__PURE__ */ new Set([
|
|
1353
|
+
"read",
|
|
1354
|
+
"pread",
|
|
1355
|
+
"exists",
|
|
1356
|
+
"stat",
|
|
1357
|
+
"lstat",
|
|
1358
|
+
"readdir",
|
|
1359
|
+
"readdir-stat",
|
|
1360
|
+
"readlink",
|
|
1361
|
+
"statfs",
|
|
1362
|
+
"kept",
|
|
1363
|
+
"access"
|
|
1364
|
+
]);
|
|
1352
1365
|
calls = 0;
|
|
1353
1366
|
looks = 0;
|
|
1354
1367
|
SPIN_MS = 0.06;
|
|
@@ -2634,7 +2647,7 @@ var KERNEL_VERSION, OS_RELEASE;
|
|
|
2634
2647
|
var init_version = __esm({
|
|
2635
2648
|
"src/version.ts"() {
|
|
2636
2649
|
"use strict";
|
|
2637
|
-
KERNEL_VERSION = true ? "1.124.
|
|
2650
|
+
KERNEL_VERSION = true ? "1.124.12" : "0.0.0-dev";
|
|
2638
2651
|
OS_RELEASE = "6.0.0-slicc";
|
|
2639
2652
|
}
|
|
2640
2653
|
});
|