threading: only save/restore thread local variables in handle_all_queued when actually needed
We don't need to save/restore outside of signal handlers. Also, bignum_registers were not saved. Allocation of the values array has been changed to heap allocation, since this array is quite large and we may overflow the C stack, if we allocate it there.
Please register or sign in to comment