@ai-ecoverse/slicc-kernel 1.195.39 → 1.195.40

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.
@@ -9060,7 +9060,7 @@ var init_version = __esm({
9060
9060
  "src/version.ts"() {
9061
9061
  "use strict";
9062
9062
  init_captured_globals();
9063
- KERNEL_VERSION = true ? "1.195.39" : "0.0.0-dev";
9063
+ KERNEL_VERSION = true ? "1.195.40" : "0.0.0-dev";
9064
9064
  OS_RELEASE = "6.0.0-slicc";
9065
9065
  }
9066
9066
  });
@@ -9059,7 +9059,7 @@ var init_version = __esm({
9059
9059
  "src/version.ts"() {
9060
9060
  "use strict";
9061
9061
  init_captured_globals();
9062
- KERNEL_VERSION = true ? "1.195.39" : "0.0.0-dev";
9062
+ KERNEL_VERSION = true ? "1.195.40" : "0.0.0-dev";
9063
9063
  OS_RELEASE = "6.0.0-slicc";
9064
9064
  }
9065
9065
  });
package/dist/node.js CHANGED
@@ -7715,7 +7715,7 @@ function satisfies(version, range2) {
7715
7715
  }
7716
7716
 
7717
7717
  // src/version.ts
7718
- var KERNEL_VERSION = true ? "1.195.39" : "0.0.0-dev";
7718
+ var KERNEL_VERSION = true ? "1.195.40" : "0.0.0-dev";
7719
7719
  var OS_RELEASE = "6.0.0-slicc";
7720
7720
  function procVersion() {
7721
7721
  return `Linux version ${OS_RELEASE} (slicc-kernel ${KERNEL_VERSION}) #1 SMP PREEMPT_DYNAMIC
@@ -28373,7 +28373,19 @@ var WasmProcess = class _WasmProcess {
28373
28373
  }
28374
28374
  async syscall(req, cancelled, block, preparedSpawn) {
28375
28375
  const hook = testSyscallHook();
28376
- if (hook) await hook({ pid: this.pid, op: req.op });
28376
+ if (hook) {
28377
+ const clockBlock = block;
28378
+ await hook({
28379
+ pid: this.pid,
28380
+ op: req.op,
28381
+ onBlock: (notify) => {
28382
+ block = () => {
28383
+ clockBlock?.();
28384
+ notify();
28385
+ };
28386
+ }
28387
+ });
28388
+ }
28377
28389
  this.options.onSyscall?.(req);
28378
28390
  this.calls += 1;
28379
28391
  const started = performance.now();