diff options
| author | Koichi Sasada <ko1@atdot.net> | 2023-10-13 01:14:17 +0900 |
|---|---|---|
| committer | Koichi Sasada <ko1@atdot.net> | 2023-10-13 09:19:31 +0900 |
| commit | cdb36dfe7ddb7cbd7ed95e84b24114c8869a7e5e (patch) | |
| tree | 2de31772f8288869838c7fa5fff6ba60c342453f /thread_none.c | |
| parent | 2794a8fef65eb16767c2f46f8f5058c10b4591b9 (diff) | |
fix `native_thread_destroy()` timing
With M:N thread scheduler, the native thread (NT) related resources
should be freed when the NT is no longer needed. So the calling
`native_thread_destroy()` at the end of `is will be freed when
`thread_cleanup_func()` (at the end of Ruby thread) is not correct
timing. Call it when the corresponding Ruby thread is collected.
Diffstat (limited to 'thread_none.c')
| -rw-r--r-- | thread_none.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/thread_none.c b/thread_none.c index fff6e63e11..4d53d3bf4d 100644 --- a/thread_none.c +++ b/thread_none.c @@ -139,11 +139,6 @@ ruby_mn_threads_params(void) { } -static void -native_thread_destroy(rb_thread_t *th) -{ -} - void ruby_init_stack(volatile VALUE *addr) { |
