@ai-ecoverse/slicc-kernel 1.98.0 → 1.98.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 CHANGED
@@ -917,7 +917,7 @@ WASIX_SYSROOT_28=/path/to/wasix-sysroot ./build.sh
917
917
 
918
918
  - `WASIX_SYSROOT_28` is the unpacked sysroot package.
919
919
  - `wasixcc` (0.4.7, WASIX clang 21.1.2) comes from `PATH`, or is installed by `install-wasixcc.sh` as for `dlfork`.
920
- - The build is reproducible: `bin/epolltest.wasm` is 78,672 bytes, sha256 `f1ff262e2d90080c37c968187ade45c7d3adf81b49dd0dc0109428ef9c7e1df8`.
920
+ - The build is reproducible: `bin/epolltest.wasm` is 78,799 bytes, sha256 `9ff8d336a261ebb9076b5b9c760e9ba50fa17053b1d66ab89cfe05395c8e1deb`.
921
921
 
922
922
  ## License
923
923
 
@@ -12035,7 +12035,7 @@ var PATH_OPS = new Set(SYNC_FS_OPS);
12035
12035
  var EARLY_WHOLE_FILE = 64 * 1024;
12036
12036
 
12037
12037
  // src/version.ts
12038
- var KERNEL_VERSION = true ? "1.98.0" : "0.0.0-dev";
12038
+ var KERNEL_VERSION = true ? "1.98.1" : "0.0.0-dev";
12039
12039
  var OS_RELEASE = "6.0.0-slicc";
12040
12040
  function procVersion() {
12041
12041
  return `Linux version ${OS_RELEASE} (slicc-kernel ${KERNEL_VERSION}) #1 SMP PREEMPT_DYNAMIC
@@ -12628,15 +12628,19 @@ var EpollFile = class _EpollFile {
12628
12628
  return out;
12629
12629
  }
12630
12630
  async wait(fds, max, timeoutMs, signal) {
12631
- const deadline = timeoutMs < 0 ? Number.POSITIVE_INFINITY : Date.now() + timeoutMs;
12631
+ const deadline = timeoutMs < 0 ? Number.POSITIVE_INFINITY : performance.now() + timeoutMs;
12632
12632
  for (; ; ) {
12633
12633
  const events = this.collect(fds, max);
12634
- if (events.length > 0 || Date.now() >= deadline) return events;
12634
+ if (events.length > 0 || performance.now() >= deadline) return events;
12635
12635
  const round = new AbortController();
12636
12636
  const woken = this.changes.wait(AbortSignal.any([round.signal, signal]));
12637
12637
  woken.catch(() => void 0);
12638
12638
  let timer;
12639
- const expiry = deadline === Number.POSITIVE_INFINITY ? [] : [new Promise((resolve2) => timer = setTimeout(resolve2, deadline - Date.now()))];
12639
+ const expiry = deadline === Number.POSITIVE_INFINITY ? [] : [
12640
+ new Promise(
12641
+ (resolve2) => timer = setTimeout(resolve2, deadline - performance.now())
12642
+ )
12643
+ ];
12640
12644
  try {
12641
12645
  await Promise.race([woken, ...expiry]);
12642
12646
  } finally {
@@ -14431,7 +14435,7 @@ function interruption(signal) {
14431
14435
  return { promise, done: () => signal.removeEventListener("abort", fail2) };
14432
14436
  }
14433
14437
  async function selectFds(fds, read, write, timeoutMs, interrupt) {
14434
- const deadline = timeoutMs < 0 ? Number.POSITIVE_INFINITY : Date.now() + timeoutMs;
14438
+ const deadline = timeoutMs < 0 ? Number.POSITIVE_INFINITY : performance.now() + timeoutMs;
14435
14439
  const interrupted3 = interruption(interrupt);
14436
14440
  interrupted3.promise.catch(() => {
14437
14441
  });
@@ -14444,14 +14448,18 @@ async function selectFds(fds, read, write, timeoutMs, interrupt) {
14444
14448
  async function waitReady(fds, read, write, deadline, interrupted3) {
14445
14449
  for (; ; ) {
14446
14450
  const now = ready(fds, read, write);
14447
- if (now.read.length > 0 || now.write.length > 0 || Date.now() >= deadline) return now;
14451
+ if (now.read.length > 0 || now.write.length > 0 || performance.now() >= deadline) return now;
14448
14452
  const round = new AbortController();
14449
14453
  const changes = [.../* @__PURE__ */ new Set([...read, ...write])].flatMap((fd) => {
14450
14454
  const file = fds.get(fd).file;
14451
14455
  return file.changed === void 0 ? [] : [file.changed(round.signal).catch(() => void 0)];
14452
14456
  });
14453
14457
  let timer;
14454
- const expiry = deadline === Number.POSITIVE_INFINITY ? [] : [new Promise((resolve2) => timer = setTimeout(resolve2, deadline - Date.now()))];
14458
+ const expiry = deadline === Number.POSITIVE_INFINITY ? [] : [
14459
+ new Promise(
14460
+ (resolve2) => timer = setTimeout(resolve2, deadline - performance.now())
14461
+ )
14462
+ ];
14455
14463
  try {
14456
14464
  await Promise.race([...changes, ...expiry, interrupted3]);
14457
14465
  } finally {