On Tue, Sep 14, 2010 at 8:13 AM, Nick Sieger <[email protected]> wrote:
> So I don't have any rock solid conclusions, but I can write two
> scripts that cause JRuby to hang or deadlock:
>
> http://gist.github.com/578999
>
> Either one will usually hang within 50,000 iterations (a few tens of
> seconds). I can fix infinite_wait.rb with a re-ordering of thread
> event polling inside RubyThread#wait_timeout. However, for
> deadlock.rb, it produces a thread dump similiar to the one in the gist
> above, and I am less sure of how to fix. All I know is that emulating
> Ruby's threading behavior with native threads is ridiculous.

Another update: apparently a local patch I had applied (see
http://gist.github.com/578999#file_ruby_thread.patch) is what caused
the deadlock. This same patch is what I tried to use to fix
inifinite_wait.rb. The plot thickens...

/Nick

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

    http://xircles.codehaus.org/manage_email


Reply via email to