Files
unkernel/.github
Yubinghan 9d9327abf5 js: tell the JIT the memory is shared where the page hides SharedArrayBuffer (#173)
* js: tell the JIT the memory is shared where the page hides SharedArrayBuffer

A page that is not cross-origin isolated has no SharedArrayBuffer global,
yet an SMP kernel there (cpus > 1, run on one CPU) has a shared memory.
caps() left out CAP_SHARED, so every compiled module failed to
instantiate ("mismatch in shared state of memory") and the guest ran on
the interpreter only. Ask !(buffer instanceof ArrayBuffer), as compile()
does.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* js: test for a shared memory in virtqueues without the SharedArrayBuffer global, as the JIT does

* ci: run test:jit with the SDK unit tests

---------

Co-authored-by: Pooya Parsa <pooya@pi0.io>
2026-12-04 23:19:05 +01:00
..