1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Hack to avoid leak checker

This commit is contained in:
Nobuyoshi Nakada 2022-05-25 18:47:49 +09:00
parent e77e233935
commit 983f2688db
No known key found for this signature in database
GPG key ID: 7CD2805BFA3770C6

View file

@ -182,7 +182,8 @@ class LeakChecker
def find_threads def find_threads
Thread.list.find_all {|t| Thread.list.find_all {|t|
t != Thread.current && t.alive? t != Thread.current && t.alive? &&
!(t.thread_variable?(:"\0__detached_thread__") && t.thread_variable_get(:"\0__detached_thread__"))
} }
end end