Files
unkernel/test
João Lucas 6901f8a225 js: allocate an SMP kernel's memory once, shared, at a boot and a restore, so that memoryFallbackMiB applies to it (#10)
An SMP kernel imports a shared memory, which the JS API does not show.
boot() assumed an unshared one, allocated it, got a LinkError and
allocated again, shared. It now guesses the sharing from the atomics
feature in the module's target_features section, as moduleIsMemory64()
does for the memory type; the retry stays for a wrong guess (a module
with atomics on an unshared memory).

memoryFallbackMiB only applied to the unshared allocation: where the
shared one then failed, boot was rejected with the LinkError and no
fallback was tried. It now applies to the shared allocation.

Co-authored-by: Pooya Parsa <pooya@pi0.io>
2026-11-25 01:30:03 +09:00
..
2026-11-22 23:19:14 +00:00
2026-11-22 23:19:14 +00:00
2026-11-15 23:27:04 +00:00
2026-11-19 16:04:15 +00:00
2026-11-15 23:27:04 +00:00
2026-11-15 23:27:04 +00:00
2026-11-15 23:27:04 +00:00
2026-11-15 23:27:04 +00:00