On Tue, Apr 6, 2010 at 11:16 AM, Lukas Stadler <lukas.stad...@jku.at> wrote: > Today I toyed around a little bit with JRuby and coroutines. > > I modified JRuby to use my coroutine implementation and ran some > fiber-microbenchmarks. The results are pretty good: > http://classparser.blogspot.com/2010/04/jruby-coroutines-really-fast.html > > I know that the gains won't be nearly as big in real-world applications, > but it surely won't hurt...
Looking forward to your openjdk and JRuby patches. In anticipation I tried to get openjdk w/ coro built on OS X. It seems there are a few missing pieces, which I blindly tried to fill in. I managed to get a build, but the VM dumps when trying to yield to a coroutine. All the gory details are here: http://gist.github.com/358484 Included above is a commit against the mlvm/hotspot repo, please review for correctness and feel free to commit if it looks good. The VM was crashing on an assert in unsafe.cpp: assert(target_coroutine == NULL, "expecting NULL"); What could be going wrong here? I haven't been able to untangle the coroutine magic quite yet... Cheers, /Nick _______________________________________________ mlvm-dev mailing list mlvm-dev@openjdk.java.net http://mail.openjdk.java.net/mailman/listinfo/mlvm-dev