@ai-ecoverse/slicc-kernel 1.146.7 → 1.147.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 -1
- package/dist/kernel-worker.js +48 -3
- package/dist/kernel-worker.js.map +2 -2
- package/dist/node-process-worker.js +12 -1
- package/dist/node-process-worker.js.map +2 -2
- package/dist/node.js +48 -3
- package/dist/node.js.map +2 -2
- package/dist/process-worker.js +12 -1
- package/dist/process-worker.js.map +2 -2
- package/dist/types/launcher.d.ts +4 -0
- package/dist/types/process/wasi/wasix-linker.d.ts +1 -0
- package/package.json +2 -2
|
@@ -7157,7 +7157,7 @@ var KERNEL_VERSION, OS_RELEASE;
|
|
|
7157
7157
|
var init_version = __esm({
|
|
7158
7158
|
"src/version.ts"() {
|
|
7159
7159
|
"use strict";
|
|
7160
|
-
KERNEL_VERSION = true ? "1.
|
|
7160
|
+
KERNEL_VERSION = true ? "1.147.1" : "0.0.0-dev";
|
|
7161
7161
|
OS_RELEASE = "6.0.0-slicc";
|
|
7162
7162
|
}
|
|
7163
7163
|
});
|
|
@@ -17601,9 +17601,20 @@ var init_wasix_linker = __esm({
|
|
|
17601
17601
|
this.publisher?.({ kind: "slot", index: index3, handle, name: name2 });
|
|
17602
17602
|
return index3;
|
|
17603
17603
|
}
|
|
17604
|
+
heapAlloc(bytes) {
|
|
17605
|
+
const exports = this.main?.exports;
|
|
17606
|
+
const calloc = exports?.calloc;
|
|
17607
|
+
if (typeof calloc !== "function") return void 0;
|
|
17608
|
+
const state = exports?.asyncify_get_state;
|
|
17609
|
+
if (typeof state === "function" && state() !== 0) return void 0;
|
|
17610
|
+
const at = calloc(1, bytes) >>> 0;
|
|
17611
|
+
return at === 0 ? void 0 : at;
|
|
17612
|
+
}
|
|
17604
17613
|
allocate(size, alignment) {
|
|
17605
17614
|
if (size === 0) return 0;
|
|
17606
17615
|
const to = Math.max(alignment, 16);
|
|
17616
|
+
const heap = this.heapAlloc(size + to - 16);
|
|
17617
|
+
if (heap !== void 0) return align(heap, to);
|
|
17607
17618
|
const pages2 = Math.ceil((size + (to > PAGE2 ? to : 0)) / PAGE2);
|
|
17608
17619
|
return align(this.memory.grow(pages2) * PAGE2, to);
|
|
17609
17620
|
}
|