8000 Specify that size is non-committed memory. · ruby/ruby@502ee89 · GitHub
[go: up one dir, main page]

Skip to content

Commit 502ee89

Browse files
committed
Specify that size is non-committed memory.
1 parent 320adec commit 502ee89

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

thread_win32.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ typedef LPTHREAD_START_ROUTINE w32_thread_start_func;
256256
static HANDLE
257257
w32_create_thread(DWORD stack_size, w32_thread_start_func func, void *val)
258258
{
259-
return start_thread(0, stack_size, func, val, CREATE_SUSPENDED, 0);
259+
return start_thread(0, stack_size, func, val, CREATE_SUSPENDED | STACK_SIZE_PARAM_IS_A_RESERVATION, 0);
260260
}
261261

262262
int

0 commit comments

Comments
 (0)
0