JRuby with coroutines
nicksieger at gmail.com
Tue Apr 6 20:35:01 PDT 2010
On Tue, Apr 6, 2010 at 11:16 AM, Lukas Stadler <lukas.stadler at 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:
> 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:
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...
More information about the mlvm-dev