[前][次][番号順一覧][スレッド一覧][生データ]

yarv-dev:891

From: SASADA Koichi <ko1 atdot.net>
Date: Tue, 14 Feb 2006 19:27:48 +0900
Subject: [yarv-dev:891] fixed> Re: open> NoMethodError is never raised in threads

 ささだです。

sheepman wrote:
> スレッドの中で定義されていないメソッドを呼ぶと、
> NoMethodError ではなく SystemStackError になります。
> 
> $ cat t.rb
> Thread.new{
>   no_method()
> }.join
> 
> $ ./miniruby -v t.rb
> ruby 1.9.0 (2006-02-14) [i686-linux]
> YARVCore 0.3.3 (rev: 418) [opts: ]
> t.rb:2:in `method_missing': stack level too deep (SystemStackError)
>         from t.rb:2:in `block in <main>'
> 

 いやぁ、面白いですねえ。スタックチェックで、別のネイティブスレッドのス
タックと比較してるからですね。対応してました。

-- 
// SASADA Koichi at atdot dot net


-- 
ML: yarv-dev quickml.atdot.net
使い方: http://www.atdot.net/~ko1/quickml

[前][次][番号順一覧][スレッド一覧][生データ]

       880 2006-02-14 18:43 [sheepman sheepman.sa] open> NoMethodError is never raised in threads
->     891 2006-02-14 19:27 ┗[ko1 atdot.net       ] fixed> Re: open> NoMethodError is never raised in threads
       926 2006-02-18 09:21  ┗[sheepman sheepman.sa] close> NoMethodError is never raised in threads