mirror of
https://github.com/pithings/unkernel.git
synced 2026-12-05 23:29:40 +08:00
* 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>