Skip to content

Commit

Permalink
Use default stack size for worker thread (no th pointer available).
Browse files Browse the repository at this point in the history
  • Loading branch information
ioquatix committed Jun 19, 2019
1 parent 9cb4e77 commit 7cc7269
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion thread_win32.c
Expand Up @@ -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;
Expand Down

0 comments on commit 7cc7269

Please sign in to comment.