summaryrefslogtreecommitdiff
path: root/test/ruby/test_inlinecache.rb
diff options
context:
space:
mode:
authorKoichi Sasada <ko1@atdot.net>2023-12-20 06:14:51 +0900
committerKoichi Sasada <ko1@atdot.net>2023-12-20 07:00:41 +0900
commit2fe5fc176b31ce132e05a91b2c96b4a935e46ceb (patch)
treeea7090d067070537b8cf5cd25b689aea1f7935ad /test/ruby/test_inlinecache.rb
parent28a6e4ea9d9379a654a8f7c4b37fa33aa3ccd0b7 (diff)
setup `waiting_fd` for `thread_sched_wait_events()`
`thread_sched_wait_events()` suspend the thread until the target fd is ready. Howver, other threads can close the target fd and suspended thread should be awake. To support it, setup `waiting_fd` before `thread_sched_wait_events()`. `rb_thread_io_wake_pending_closer()` should be called before `RUBY_VM_CHECK_INTS_BLOCKING()` because it can return this function. This patch introduces additional overhead (setup/cleanup `waiting_fd`) and maybe we can reduce the overhead.
Diffstat (limited to 'test/ruby/test_inlinecache.rb')
0 files changed, 0 insertions, 0 deletions