1.9: Thread#backtrace should apply to the thread in question
------------------------------------------------------------

                 Key: JRUBY-4951
                 URL: http://jira.codehaus.org/browse/JRUBY-4951
             Project: JRuby
          Issue Type: Bug
         Environment: jruby 1.6.0.dev (ruby 1.8.7 patchlevel 249) (2010-07-14 
b7f083a) (Java HotSpot(TM) Client VM 1.6.0_10) [x86-java]
            Reporter: Roger Pack
            Assignee: Thomas E Enebo
            Priority: Minor


def go
  sleep
end
def go2
  sleep
end
Thread.new { go }
Thread.new { go2 }
sleep 1
p Thread.list.map(&:backtrace)

This code should output 3 different backtraces.
Instead I get:


C:\dev\ruby>c:\dev\ruby\downloads\jruby\bin\jruby --1.9 jruby_bug.rb
[["jruby_bug.rb:10:in `<main>'"], ["jruby_bug.rb:10:in `<main>'"], 
["jruby_bug.rb:10:in `<main>'"]]


Thanks!

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to