mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
Remove unused rb_thread_create_mjit_thread
follow up https://github.com/ruby/ruby/pull/6006
This commit is contained in:
parent
23459e4dbb
commit
a327ce8b07
3 changed files with 0 additions and 61 deletions
|
@ -879,29 +879,4 @@ native_thread_native_thread_id(rb_thread_t *th)
|
|||
}
|
||||
#define USE_NATIVE_THREAD_NATIVE_THREAD_ID 1
|
||||
|
||||
#if USE_MJIT
|
||||
static unsigned long __stdcall
|
||||
mjit_worker(void *arg)
|
||||
{
|
||||
void (*worker_func)(void) = arg;
|
||||
rb_w32_set_thread_description(GetCurrentThread(), L"ruby-mjitworker");
|
||||
worker_func();
|
||||
return 0;
|
||||
}
|
||||
|
||||
/* Launch MJIT thread. Returns FALSE if it fails to create thread. */
|
||||
int
|
||||
rb_thread_create_mjit_thread(void (*worker_func)(void))
|
||||
{
|
||||
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;
|
||||
}
|
||||
|
||||
w32_resume_thread(thread_id);
|
||||
return TRUE;
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* THREAD_SYSTEM_DEPENDENT_IMPLEMENTATION */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue