wasm-posix-host
    Preparing search index...

    Class ThreadPageAllocator

    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

    Index

    Constructors

    Methods

    Constructors

    Methods

    • Return pages to the free list after thread exit.

      Parameters

      • slotStartPage: number

      Returns void