-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix
Reference#exec_recursive
, #exec_recursive_clone
to be fiber a…
…ware (#15361) Recursion of the `#inspect`, `#pretty_print` and `#clone` methods is handled by a per-thread global hash. But if any of these methods yields —which will happen when writing to an IO— another fiber running on the same thread will falsely detect a recursion if it inspects the same object. This patch moves the backing hashes to instance variables of `Fiber`, using a per-fiber hash instead of per-thread/process hash. References #15088
- Loading branch information
1 parent
35ecb7d
commit df06679
Showing
2 changed files
with
22 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters