Closed dicej closed 10 years ago
Why not use a compile-time flag? I thought we already had an AVIAN_AOT_ONLY (sp?) preprocessor flag.
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.
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.