|
It turns out that a number of platforms require that thread stack size be a multiple of the memory page size (usually 4096 or 8192). Therefore, I changed set_stack_size to round up the stack size accordingly. Also, some platforms have a minimum stack size. That will be used as well, and a warning issued if the stack size parameter is below the minimum.
|