@ai-ecoverse/slicc-kernel 1.134.4 → 1.135.0

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.
@@ -2771,7 +2771,7 @@ var KERNEL_VERSION, OS_RELEASE;
2771
2771
  var init_version = __esm({
2772
2772
  "src/version.ts"() {
2773
2773
  "use strict";
2774
- KERNEL_VERSION = true ? "1.134.4" : "0.0.0-dev";
2774
+ KERNEL_VERSION = true ? "1.135.0" : "0.0.0-dev";
2775
2775
  OS_RELEASE = "6.0.0-slicc";
2776
2776
  }
2777
2777
  });
@@ -12286,11 +12286,11 @@ function frozen(bytes) {
12286
12286
  truncate: refuse2
12287
12287
  };
12288
12288
  }
12289
- function physicalProc(fs) {
12289
+ function physicalProc(fs, now = () => performance.now()) {
12290
12290
  const view = fs.changes;
12291
12291
  let seen;
12292
12292
  return () => {
12293
- if (seen && view && !view.foreign()) {
12293
+ if (seen && view && (!view.foreign() || now() - seen.at < SHARED_TTL_MS)) {
12294
12294
  const proc = view.changedSince(seen.gen, "/proc");
12295
12295
  if (!proc.changed && !view.changedSince(seen.gen, "/").changed) {
12296
12296
  seen.gen = proc.now;
@@ -12298,6 +12298,7 @@ function physicalProc(fs) {
12298
12298
  }
12299
12299
  }
12300
12300
  const gen = view?.now();
12301
+ const at = now();
12301
12302
  let physical2;
12302
12303
  try {
12303
12304
  fs.stat("/proc");
@@ -12310,7 +12311,7 @@ function physicalProc(fs) {
12310
12311
  }
12311
12312
  physical2 = false;
12312
12313
  }
12313
- seen = gen === void 0 ? void 0 : { gen, physical: physical2 };
12314
+ seen = gen === void 0 ? void 0 : { gen, physical: physical2, at };
12314
12315
  return physical2;
12315
12316
  };
12316
12317
  }