From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: poffice@blade.nagaokaut.ac.jp Delivered-To: poffice@blade.nagaokaut.ac.jp Received: from kankan.nagaokaut.ac.jp (kankan.nagaokaut.ac.jp [133.44.2.24]) by blade.nagaokaut.ac.jp (Postfix) with ESMTP id 6160317CEC12 for ; Fri, 5 Apr 2013 18:50:38 +0900 (JST) Received: from funfun.nagaokaut.ac.jp (smtp.nagaokaut.ac.jp [133.44.2.201]) by kankan.nagaokaut.ac.jp (Postfix) with ESMTP id C7E70EA6F7B for ; Fri, 5 Apr 2013 18:27:55 +0900 (JST) Received: from funfun.nagaokaut.ac.jp (localhost.nagaokaut.ac.jp [127.0.0.1]) by funfun.nagaokaut.ac.jp (Postfix) with ESMTP id CD98897A82C for ; Fri, 5 Apr 2013 18:27:55 +0900 (JST) X-Virus-Scanned: amavisd-new at nagaokaut.ac.jp Received: from funfun.nagaokaut.ac.jp ([127.0.0.1]) by funfun.nagaokaut.ac.jp (funfun.nagaokaut.ac.jp [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id h7m_3jZXJ0YJ for ; Fri, 5 Apr 2013 18:27:55 +0900 (JST) Received: from voscc.nagaokaut.ac.jp (voscc.nagaokaut.ac.jp [133.44.1.100]) by funfun.nagaokaut.ac.jp (Postfix) with ESMTP id ACED797A827 for ; Fri, 5 Apr 2013 18:27:55 +0900 (JST) Received: from carbon.ruby-lang.org (carbon.ruby-lang.org [221.186.184.68]) by voscc.nagaokaut.ac.jp (Postfix) with ESMTP id 58AAF952446 for ; Fri, 5 Apr 2013 18:27:53 +0900 (JST) Received: from beryllium.ruby-lang.org (beryllium.ruby-lang.org [127.0.0.1]) by carbon.ruby-lang.org (Postfix) with ESMTP id E54853C224C88; Fri, 5 Apr 2013 18:27:51 +0900 (JST) Received: from fluorine.ruby-lang.org (www.rubyist.net [210.251.121.216]) by carbon.ruby-lang.org (Postfix) with ESMTP id 5EE3C3C21E7D0 for ; Fri, 5 Apr 2013 18:27:51 +0900 (JST) Received: from ruby-lang.org (localhost [127.0.0.1]) by fluorine.ruby-lang.org (Postfix) with ESMTP id 42C063ED21 for ; Fri, 5 Apr 2013 18:27:51 +0900 (JST) Delivered-To: ruby-core@ruby-lang.org Date: Fri, 5 Apr 2013 18:27:51 +0900 Posted: Fri, 5 Apr 2013 18:27:51 +0900 From: "nobu (Nobuyoshi Nakada)" Reply-To: ruby-core@ruby-lang.org Subject: [ruby-core:54019] [ruby-trunk - Feature #8215][Open] Support accessing Fiber-locals and backtraces for a Fiber To: ruby-core@ruby-lang.org Message-Id: References: X-ML-Name: ruby-core X-Mail-Count: 54019 X-MLServer: fml [fml 4.0.3 release (20011202/4.0.3)]; post only (only members can post) X-ML-Info: If you have a question, send e-mail with the body "help" (without quotes) to the address ruby-core-ctl@ruby-lang.org; help= X-Mailer: Redmine X-Redmine-Issue-Author: halorgium X-Auto-Response-Suppress: OOF X-Redmine-Issue-Id: 8215 X-Redmine-Mailinglistintegration-Message-Ids: 27200 X-Redmine-Project: ruby-trunk Auto-Submitted: auto-generated X-Redmine-Site: Ruby Issue Tracking System X-Redmine-Host: bugs.ruby-lang.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Precedence: bulk List-Id: ruby-core.ruby-lang.org List-Software: fml [fml 4.0.3 release (20011202/4.0.3)] List-Post: List-Owner: List-Help: List-Unsubscribe: Issue #8215 has been updated by nobu (Nobuyoshi Nakada). Description updated Status changed from Closed to Open According to that rubinius issue tracker, it seems a feature request for Fiber#[] and Fiber#[]=. ---------------------------------------- Feature #8215: Support accessing Fiber-locals and backtraces for a Fiber https://bugs.ruby-lang.org/issues/8215#change-38259 Author: halorgium (Tim Carey-Smith) Status: Open Priority: Normal Assignee: Category: core Target version: =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 -- http://bugs.ruby-lang.org/