Skip to content

Commit

Permalink
Use native_thread_init_stack on cygwin
Browse files Browse the repository at this point in the history
  • Loading branch information
fd00 authored and nobu committed Dec 23, 2023
1 parent 50bf437 commit daefbf8
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions thread_pthread.c
Expand Up @@ -2074,10 +2074,6 @@ native_thread_init_stack(rb_thread_t *th)
return 0;
}

#ifndef __CYGWIN__
#define USE_NATIVE_THREAD_INIT 1
#endif

struct nt_param {
rb_vm_t *vm;
struct rb_native_thread *nt;
Expand Down Expand Up @@ -2186,13 +2182,8 @@ native_thread_create_dedicated(rb_thread_t *th)
static void
call_thread_start_func_2(rb_thread_t *th)
{
#if defined USE_NATIVE_THREAD_INIT
native_thread_init_stack(th);
thread_start_func_2(th, th->ec->machine.stack_start);
#else
VALUE stack_start;
thread_start_func_2(th, &stack_start);
#endif
}

static void *
Expand Down

0 comments on commit daefbf8

Please sign in to comment.