summaryrefslogtreecommitdiff
path: root/thread_win32.c
diff options
context:
space:
mode:
authorSamuel Williams <samuel.williams@oriontransfer.co.nz>2019-06-05 22:25:08 (GMT)
committerSamuel Williams <samuel.williams@oriontransfer.co.nz>2019-06-19 08:39:10 (GMT)
commit7cc7269b3d3e3aff518a6cd05971422351253957 (patch)
treec996d89d9aa9067ce69d1925b855a3db642f010c /thread_win32.c
parent9cb4e7725f668318d08cb79b1459a04eadf2f925 (diff)
Use default stack size for worker thread (no th pointer available).
Diffstat (limited to 'thread_win32.c')
-rw-r--r--thread_win32.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/thread_win32.c b/thread_win32.c
index b7bc214..e38c9d9 100644
--- a/thread_win32.c
+++ b/thread_win32.c
@@ -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;