coroutine support

Lukas Stadler lukas.stadler at jku.at
Thu Nov 19 10:32:40 PST 2009


Hi!

Rémi Forax wrote:
> Hi Lukas,
> Your example doesn't work on my laptop:
Ok, after I finally got everything running on Linux+Netbeans so that I 
can debug into the assembly code I was able to reproduce this. In one 
place I used Assembler.get_thread without a valid esp, which is totally 
fine on windows but not-so-good on Linux.

> public class FiberTest {
>
>   static class MyFiber extends Fiber {
>     @Override
>     protected Object generate(Object arg) {
>       System.out.println("generate called with "+arg);
>
>       return null;
>     }
>   }
>   ...
> }
If you want to call "yield" from within the generate method you should 
make it @Continuable.

It should now also run fine without the javax.stack classes.

cheers,
 Lukas




More information about the mlvm-dev mailing list