1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Use default stack size for worker thread (no th pointer available).

This commit is contained in:
Samuel Williams 2019-06-06 10:25:08 +12:00
parent 9cb4e7725f
commit 7cc7269b3d

View file

@ -831,7 +831,7 @@ mjit_worker(void *arg)
int
rb_thread_create_mjit_thread(void (*worker_func)(void))
{
const size_t stack_size = th->vm->default_params.thread_machine_stack_size;
size_t stack_size = 4 * 1024; /* 4KB is the minimum commit size */
HANDLE thread_id = w32_create_thread(stack_size, mjit_worker, worker_func);
if (thread_id == 0) {
return FALSE;