From 04c22c5760e3475446c92955023d636694a4175f Mon Sep 17 00:00:00 2001 From: Koichi Sasada Date: Sat, 9 Dec 2023 00:16:41 +0900 Subject: [PATCH] Do not make a Fiber for commands because context was changed on suspended threads. --- lib/debug/thread_client.rb | 4 ---- 1 file changed, 4 deletions(-) diff --git a/lib/debug/thread_client.rb b/lib/debug/thread_client.rb index 332e50cb8..753898560 100644 --- a/lib/debug/thread_client.rb +++ b/lib/debug/thread_client.rb @@ -865,10 +865,6 @@ class SuspendReplay < Exception private def fiber_blocking ::Fiber.blocking{yield} end - elsif ::Fiber.method_defined?(:blocking?) - private def fiber_blocking - ::Fiber.new(blocking: true){yield}.resume - end else private def fiber_blocking yield