ReadyTalk / avian

[INACTIVE] Avian is a lightweight virtual machine and class library designed to provide a useful subset of Java's features, suitable for building self-contained applications.
https://readytalk.github.io/avian/
Other
1.22k stars 173 forks source link

add avian.aotonly system property #338

Closed dicej closed 10 years ago

dicej commented 10 years ago

If this property is set to "true", the VM will abort if it is asked to JIT compile a method. This makes debugging such issues a bit easier on platforms such as iOS where JIT is disallowed, since the failure will come earlier and with a more obvious cause.

joshuawarner32 commented 10 years ago

Why not use a compile-time flag? I thought we already had an AVIAN_AOT_ONLY (sp?) preprocessor flag.

dicej commented 10 years ago

On Mon, 22 Sep 2014, Joshua Warner wrote:

Why not use a compile-time flag? I thought we already had an AVIAN_AOT_ONLY (sp?) preprocessor flag.

Yeah, but that flag doesn't actually disable the JIT compiler. I think Alexey just added it so he wouldn't have to implement e.g. syncInstructionCache for Windows RT. I guess it would make sense to use it in this case, too, though. I'll give it another try when I have time to test it.