Skip to content

Commit 0beb0ee

Browse files
author
Jacob Lacouture
committed
revert sched_destroy mutex_destroy
1 parent 28b58bc commit 0beb0ee

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

thread_pthread.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1761,9 +1761,12 @@ rb_thread_sched_destroy(struct rb_thread_sched *sched)
17611761
* may still grab vm->gvl.lock when calling gvl_release at
17621762
* the end of thread_start_func_2
17631763
*/
1764+
#if 0
1765+
// TODO
17641766
rb_native_mutex_destroy(&sched->lock_);
17651767

1766-
//clear_thread_cache_altstack();
1768+
clear_thread_cache_altstack();
1769+
#endif
17671770
}
17681771

17691772
#ifdef RB_THREAD_T_HAS_NATIVE_ID

0 commit comments

Comments
 (0)