@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.
@@ -582,15 +582,12 @@ function cachingBridge(bridge, now = () => performance.now(), shared) {
582
582
  bridge.identify();
583
583
  };
584
584
  const identified = (p, op, also) => {
585
- const before = cache.generation();
586
585
  try {
587
586
  return op();
588
587
  } finally {
589
588
  const st = bridge.identified?.() ?? null;
590
- if (!st) cache.mutated([]);
591
- else if (cache.mutated([p, ...also], st.ino) === before + 1 + also.length && !st.isSymbolicLink) {
592
- cache.put(stats, p, st);
593
- }
589
+ if (st) cache.mutated([p, ...also], st.ino);
590
+ else cache.mutated([]);
594
591
  }
595
592
  };
596
593
  const rewriting = (p, op, ...also) => {
@@ -903,15 +900,11 @@ var init_wasi_files = __esm({
903
900
  }
904
901
  mutated(paths, ino = 0) {
905
902
  this.clear();
906
- if (!this.shared) return 0;
903
+ if (!this.shared) return;
907
904
  const key = ino % 4294967296 | 0;
908
905
  for (const [i, hash] of (paths.length > 0 ? paths.map(pathHash) : [0]).entries()) {
909
906
  this.seen = this.publish(this.shared, hash, i === 0 ? key : 0);
910
907
  }
911
- return this.seen;
912
- }
913
- generation() {
914
- return this.shared ? Atomics.load(this.shared, FS_GEN) : 0;
915
908
  }
916
909
  inoOf(path, look) {
917
910
  if (!this.shared) return 0;