Issue #4480 has been updated by Yui NARUSE.

Status changed from Open to Assigned
Assignee set to Hiroshi NAKAMURA


----------------------------------------
Bug #4480: Thread-local variables issue: Thread#[] returns nil when called first time
http://redmine.ruby-lang.org/issues/4480

Author: Andrei Kulakov
Status: Assigned
Priority: Normal
Assignee: Hiroshi NAKAMURA
Category: 
Target version: 1.9.2
ruby -v: ruby 1.9.2p180 (2011-02-18 revision 30909) [i686-linux]


=begin
In ruby 1.9.2p180
 t = Thread.new do
   Thread.current[:var] = "var"
   Thread.stop
 end
 
 p t[:var] #=> nil
 p t[:var] #=> "var"

In ruby 1.8.7
 p t[:var] #=> "var"
 p t[:var] #=> "var"
=end



-- 
http://redmine.ruby-lang.org