liballocs
liballocs copied to clipboard
Stacks in pthreads or sigaltstacks
Currently our stack and stackframe allocators only know about the initial stack. They should also know about stacks registered with sigaltstack and with clone (used by pthread_create).
Our replacement clone() could pre-create the bigallocs (stack and stackframe). If the clone fails, the memory is arguably morally still a stack. If it gets deallocated by munmap(), we would transparently clear out the stack and stackframe bigallocs because they are children of the top-level mapping.