On 09/27/2011 11:12 PM, Lukas Stadler wrote:
Yes :-) and there's more:
Pre-built binaries for linux x64 and more documentation at:
http://ssw.jku.at/General/Staff/LS/coro/

The page is work in progress, though.
I'll have to finish it by next week, in order to direct people to it at my JavaOne talk :-)

- Lukas

very cool, with the binary (product VM), ping pong works !

    new Coroutine(new Runnable() {
      @Override
      public void run() {
        for(int i = 0; i < 5; i++) {
          System.out.println("pong " + i);
          Coroutine.yield();
        }
      }
    });

    for (int i = 0; i < 5; i++) {
       System.out.println("ping " + i);
       Coroutine.yield();
    }

output:
ping 0
pong 0
ping 1
pong 1
ping 2
pong 2
ping 3
pong 3
ping 4
pong 4

Rémi


On Sep 27, 2011, at 21:43 , Remi Forax wrote:

Cool !

Remi


lukas.stad...@jku.at <mailto:lukas.stad...@jku.at> wrote:

Changeset: 9bb80f812fd7
Author: Lukas Stadler <lukas.stad...@jku.at <mailto:lukas.stad...@jku.at>>
Date:      2011-09-26 15:11 +0200
URL: http://hg.openjdk.java.net/mlvm/mlvm/hotspot/rev/9bb80f812fd7

rebase coro to current hsx/hotspot-comp

! coro.patch
! series

Changeset: 1bdc6f420130
Author: Lukas Stadler <lukas.stad...@jku.at <mailto:lukas.stad...@jku.at>>
Date:      2011-09-27 18:34 +0200
URL: http://hg.openjdk.java.net/mlvm/mlvm/hotspot/rev/1bdc6f420130

coro: fixes to stack walking, support for ricochet frames

! coro.patch

_______________________________________________
mlvm-dev mailing list
mlvm-dev@openjdk.java.net <mailto:mlvm-dev@openjdk.java.net>
http://mail.openjdk.java.net/mailman/listinfo/mlvm-dev
_______________________________________________
mlvm-dev mailing list
mlvm-dev@openjdk.java.net <mailto:mlvm-dev@openjdk.java.net>
http://mail.openjdk.java.net/mailman/listinfo/mlvm-dev



_______________________________________________
mlvm-dev mailing list
mlvm-dev@openjdk.java.net
http://mail.openjdk.java.net/mailman/listinfo/mlvm-dev

_______________________________________________
mlvm-dev mailing list
mlvm-dev@openjdk.java.net
http://mail.openjdk.java.net/mailman/listinfo/mlvm-dev

Reply via email to