@ai-ecoverse/slicc-kernel 1.62.2 → 1.62.4
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 +8 -11
- package/dist/kernel-worker.js.map +2 -2
- package/dist/node-process-worker.js +3 -10
- package/dist/node-process-worker.js.map +2 -2
- package/dist/node.js +8 -11
- package/dist/node.js.map +2 -2
- package/dist/process-worker.js +3 -10
- package/dist/process-worker.js.map +2 -2
- package/package.json +1 -1
package/dist/process-worker.js
CHANGED
|
@@ -4740,15 +4740,12 @@ function cachingBridge(bridge, now = () => performance.now(), shared) {
|
|
|
4740
4740
|
bridge.identify();
|
|
4741
4741
|
};
|
|
4742
4742
|
const identified = (p, op, also) => {
|
|
4743
|
-
const before = cache.generation();
|
|
4744
4743
|
try {
|
|
4745
4744
|
return op();
|
|
4746
4745
|
} finally {
|
|
4747
4746
|
const st = bridge.identified?.() ?? null;
|
|
4748
|
-
if (
|
|
4749
|
-
else
|
|
4750
|
-
cache.put(stats, p, st);
|
|
4751
|
-
}
|
|
4747
|
+
if (st) cache.mutated([p, ...also], st.ino);
|
|
4748
|
+
else cache.mutated([]);
|
|
4752
4749
|
}
|
|
4753
4750
|
};
|
|
4754
4751
|
const rewriting = (p, op, ...also) => {
|
|
@@ -5061,15 +5058,11 @@ var init_wasi_files = __esm({
|
|
|
5061
5058
|
}
|
|
5062
5059
|
mutated(paths, ino = 0) {
|
|
5063
5060
|
this.clear();
|
|
5064
|
-
if (!this.shared) return
|
|
5061
|
+
if (!this.shared) return;
|
|
5065
5062
|
const key = ino % 4294967296 | 0;
|
|
5066
5063
|
for (const [i, hash] of (paths.length > 0 ? paths.map(pathHash) : [0]).entries()) {
|
|
5067
5064
|
this.seen = this.publish(this.shared, hash, i === 0 ? key : 0);
|
|
5068
5065
|
}
|
|
5069
|
-
return this.seen;
|
|
5070
|
-
}
|
|
5071
|
-
generation() {
|
|
5072
|
-
return this.shared ? Atomics.load(this.shared, FS_GEN) : 0;
|
|
5073
5066
|
}
|
|
5074
5067
|
inoOf(path, look) {
|
|
5075
5068
|
if (!this.shared) return 0;
|