liballocs icon indicating copy to clipboard operation
liballocs copied to clipboard

Stacks in pthreads or sigaltstacks

Open stephenrkell opened this issue 5 years ago • 1 comments

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).

stephenrkell avatar Jun 22 '20 16:06 stephenrkell

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.

stephenrkell avatar Mar 30 '22 17:03 stephenrkell