From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-Status: No, score=-3.9 required=3.0 tests=AWL,BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,UNPARSEABLE_RELAY shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from neon.ruby-lang.org (neon.ruby-lang.org [221.186.184.75]) by dcvr.yhbt.net (Postfix) with ESMTP id 6CEF91FA17 for ; Sat, 8 Aug 2020 23:11:30 +0000 (UTC) Received: from neon.ruby-lang.org (localhost [IPv6:::1]) by neon.ruby-lang.org (Postfix) with ESMTP id 78F61120A26; Sun, 9 Aug 2020 08:10:59 +0900 (JST) Received: from xtrwkhkc.outbound-mail.sendgrid.net (xtrwkhkc.outbound-mail.sendgrid.net [167.89.16.28]) by neon.ruby-lang.org (Postfix) with ESMTPS id 9D529120A1F for ; Sun, 9 Aug 2020 08:10:57 +0900 (JST) Received: by filterdrecv-p3iad2-d8cc6d457-754wc with SMTP id filterdrecv-p3iad2-d8cc6d457-754wc-20-5F2F311E-1 2020-08-08 23:11:26.05038151 +0000 UTC m=+882190.803829389 Received: from herokuapp.com (unknown) by ismtpd0099p1mdw1.sendgrid.net (SG) with ESMTP id dsNVXj-mSEylEJQsAYUzNQ for ; Sat, 08 Aug 2020 23:11:25.979 +0000 (UTC) Date: Sat, 08 Aug 2020 23:11:26 +0000 (UTC) From: samuel@oriontransfer.net Message-ID: References: Mime-Version: 1.0 X-Redmine-MailingListIntegration-Message-Ids: 75346 X-Redmine-Project: ruby-master X-Redmine-Issue-Tracker: Feature X-Redmine-Issue-Id: 8215 X-Redmine-Issue-Author: halorgium X-Redmine-Issue-Assignee: ioquatix X-Redmine-Sender: ioquatix X-Mailer: Redmine X-Redmine-Host: bugs.ruby-lang.org X-Redmine-Site: Ruby Issue Tracking System X-Auto-Response-Suppress: All Auto-Submitted: auto-generated X-SG-EID: =?us-ascii?Q?cjxb6GWHefMLoR50bkJBcGo6DRiDl=2FNYcMZdY+Wj30TdF2sBd4koh3BFmVpeqf?= =?us-ascii?Q?QM1vR7BspgH1=2FAkD+XL1yDWykk480Uux9C7bRXE?= =?us-ascii?Q?=2Fhu3cAZIgn5BkPLZe0NYvTgZwZTuqcfv5TzapdC?= =?us-ascii?Q?KahDjIhPdyJBH69GNtYbpRfQoWA4q=2FffEb+cWBT?= =?us-ascii?Q?=2FkrI=2FqGtyWyUZvmGgd3bOKX7OOiiIlpI7ZN8On1?= =?us-ascii?Q?Ht3wZEVlS9j8Q0Lo4=3D?= To: ruby-core@ruby-lang.org X-ML-Name: ruby-core X-Mail-Count: 99520 Subject: [ruby-core:99520] [Ruby master Feature#8215] Support accessing Fiber-locals and backtraces for a Fiber X-BeenThere: ruby-core@ruby-lang.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: Ruby developers List-Id: Ruby developers List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ruby-core-bounces@ruby-lang.org Sender: "ruby-core" Issue #8215 has been updated by ioquatix (Samuel Williams). Status changed from Assigned to Closed It looks like we can implement `Fiber#backtrace`: https://bugs.ruby-lang.org/issues/16815 and in addition we should continue the discussion about Fiber locals: https://bugs.ruby-lang.org/issues/13893 ---------------------------------------- Feature #8215: Support accessing Fiber-locals and backtraces for a Fiber https://bugs.ruby-lang.org/issues/8215#change-86981 * Author: halorgium (Tim Carey-Smith) * Status: Closed * Priority: Normal * Assignee: ioquatix (Samuel Williams) ---------------------------------------- =begin As part of debugging celluloid, I have been wanting to diagnose where the Fibers are running and their various locals. I would expect the following to work. Thread.current[:key] = "outside" fiber = Fiber.new do Thread.current[:key] = "inside" Fiber.yield end fiber.resume fiber[:key] == "inside" # true fiber.backtrace # ... I also wonder whether (({Fiber#[]})) should be implemented, so (({Fiber.current[:key]})) is possible. For reference, here is the issue on the rubinius issue tracker: ((<"github/rubinius/rubinius/2200"|URL:https://github.com/rubinius/rubinius/issues/2200>)) =end ---Files-------------------------------- 0001-cont.c-fiber-local-accessors.patch (2.94 KB) -- https://bugs.ruby-lang.org/