Skip to content
  • Koichi Sasada's avatar
    cdb36dfe
    fix `native_thread_destroy()` timing · cdb36dfe
    Koichi Sasada authored
    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.
    cdb36dfe
    fix `native_thread_destroy()` timing
    Koichi Sasada authored
    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.
Loading