Manages pthread channel/TLS allocation within a process WebAssembly.Memory.
New process launches reserve only the main-thread control pages. Pthread
slots are either allocated from a fixed compatibility arena or dynamically
reserved in the process address space by the kernel worker.
Manages pthread channel/TLS allocation within a process WebAssembly.Memory.
New process launches reserve only the main-thread control pages. Pthread slots are either allocated from a fixed compatibility arena or dynamically reserved in the process address space by the kernel worker.
Per-thread slot layout: slotStart+0 - TLS/control page slotStart+1 - fork-save/scratch page slotStart+2 - syscall channel primary page slotStart+3 - syscall channel spill page