@ai-ecoverse/slicc-kernel 1.49.0 → 1.49.1
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 +3 -3
- package/dist/kernel-worker.js +9 -0
- package/dist/kernel-worker.js.map +2 -2
- package/dist/node-process-worker.js +18 -13
- package/dist/node-process-worker.js.map +2 -2
- package/dist/node.js +9 -0
- package/dist/node.js.map +2 -2
- package/dist/process-worker.js +18 -12
- package/dist/process-worker.js.map +2 -2
- package/package.json +2 -2
package/dist/node.js
CHANGED
|
@@ -9167,6 +9167,7 @@ var SYSCALL_OPS = /* @__PURE__ */ new Set([
|
|
|
9167
9167
|
"dl-log",
|
|
9168
9168
|
"dl-closure",
|
|
9169
9169
|
"dl-closure-free",
|
|
9170
|
+
"dl-reserve",
|
|
9170
9171
|
"fd-renumber",
|
|
9171
9172
|
"fd-promote",
|
|
9172
9173
|
"fd-open-tty",
|
|
@@ -9788,6 +9789,8 @@ var WasmProcess = class {
|
|
|
9788
9789
|
case "dl-closure-free":
|
|
9789
9790
|
this.freeClosure(req.index);
|
|
9790
9791
|
return { ok: true, kind: "void" };
|
|
9792
|
+
case "dl-reserve":
|
|
9793
|
+
return { ok: true, kind: "json", json: this.reserveSlots(req.floor, req.size) };
|
|
9791
9794
|
case "sig-mask":
|
|
9792
9795
|
this.caught = req.caught;
|
|
9793
9796
|
this.ignored = req.ignored;
|
|
@@ -9835,6 +9838,12 @@ var WasmProcess = class {
|
|
|
9835
9838
|
freeClosure(index) {
|
|
9836
9839
|
if (!this.closures.live.delete(index)) throw new KernelError("EINVAL");
|
|
9837
9840
|
this.closures.free.push(index);
|
|
9841
|
+
this.dlLog.push({ kind: "closure-free", index });
|
|
9842
|
+
}
|
|
9843
|
+
reserveSlots(floor, size) {
|
|
9844
|
+
const base = Math.max(floor, this.closures.next);
|
|
9845
|
+
this.closures.next = base + size;
|
|
9846
|
+
return base;
|
|
9838
9847
|
}
|
|
9839
9848
|
asyncOps = new AsyncOps(
|
|
9840
9849
|
(req, cancelled) => this.syscall(req, cancelled),
|