[Nestedvm] runtime.call() question

Adam Megacz megacz at cs.berkeley.edu
Sun Jun 28 15:50:01 EDT 2009


David Barr <david20708 at gmail.com> writes:
> I'm porting a C application, and I'm trying to make as few changed to
> the application as possible and get it running under NestedVM within
> an Android application.

Hi, David.  NestedVM translates MIPS binaries into Java bytecode;
Android is not Java.

> My question is whether or not I can use runtime.call() to call a
> function in my C code while the program is still running but blocked
> and waiting for input.  The reason for this is I want to implement
> auto-save functionality in the program.  I'm pretty sure that the
> function that I want to call won't modify any data that will confuse
> the program because it is being called out of order.

This is called "reentrancy".  I'm pretty sure it's okay, but I haven't
actually tried it.

Brian, do you know if the NestedVM runtime is reentrant?

  - a




More information about the Nestedvm mailing list