Questions tagged [jit]

Just-In-Time compilation (JIT) is a technique used to improve the performance of interpreted code by translating it to machine code.

Introduction

From Wikipedia:

In computing, just-in-time compilation (JIT), also known as dynamic translation, is a method to improve the runtime performance of computer programs based on bytecode.

JIT compilers represent a hybrid approach, with translation occurring continuously, as with interpreters, but with caching of translated code to minimize performance degradation. They also offer handling of late-bound data types and the ability to enforce security guarantees.

In a bytecode-compiled system, source code is translated to an intermediate representation known as bytecode. The JIT compiler reads the bytecode and compiles it dynamically into machine language so the program can run faster.

Tag usage

Use the tag for questions about JIT compilers. Be sure to include other relevant tags as well. For example, if your JIT question is Java-specific, include the tag.

Further reading

1936 questions
1
vote
2 answers

.NET JIT compilation naivety

I have three years experience working full time with .NET (C# and VB). I have a good working knowledge of MSIL and I can use it as a debugging tool. I don't have much knowledge of the next step of the compilation process i.e. when the Jitter…
w0051977
  • 15,099
  • 32
  • 152
  • 329
1
vote
3 answers

Execution-time performance of code in class created using reflection versus a 'normal' class

Is the execution time (run-time) performance of code in a class that is loaded via reflection identical to the same code when the class is created using the new keyword? I say yes. But I was discussing this with a colleague who believes that the…
Ash
  • 60,973
  • 31
  • 151
  • 169
1
vote
1 answer

MultiCore JIT Startup.Profile is not beeing generated

I have tried to experiment with MultiCore JIT on a wpf-application using: App() { ProfileOptimization.SetProfileRoot(@"C:\temp\test"); // (a writable directory) ProfileOptimization.StartProfile("Startup.Profile"); } This works great on a…
Jens
  • 21
  • 3
1
vote
1 answer

How to understand these paragraphs in EMCA 335 regarding `.locals init`?

From ECMA 335 I.12.4.1 Method calls The local variable array always has null for object types and for fields within value types that hold objects. In addition, if .locals init is set, then the local variable array is initialized to 0 for…
colinfang
  • 20,909
  • 19
  • 90
  • 173
1
vote
1 answer

If a program is crashing and Windows error screen comes up but not the JIT dialog how do I get it to bring up the JIT window instead?

I am writing a DLL using Visual C++ 2008, which is then loaded and runs inside another application (an exe written in Visual C++ that I do not have source code for). I nevertheless must debug my plugin's crashes that are occurring sometimes. I…
Warren P
  • 65,725
  • 40
  • 181
  • 316
1
vote
1 answer

What is the reason for exporting the private library dependencies of an Android project?

does exporting the libraries have something to do with JIT and compiling it into dex at runtime? I'm trying to make sure that my Android application has the smallest possible binary so that upgrades are not to big. Maybe someday Google will make…
L7ColWinters
  • 1,342
  • 1
  • 14
  • 31
1
vote
1 answer

Is it possible for an application to load both NativeImage and JIT version of .Net dll?

I am investigating some minidumps for our released application. I am unable to repro these crashes locally, but for a large number of reports I'm noticing the list of loaded dll's includes both regular and .ni. versions of some WPF dlls. From the…
FrozenKiwi
  • 1,362
  • 13
  • 26
1
vote
1 answer

Is the JVM ever re-compiling compiled code?

Is the JVM (any of them) ever re-compiling code that has already been compiled at runtime?
Ion Ionascu
  • 552
  • 1
  • 4
  • 15
1
vote
2 answers

Can I JBT compile code on Windows RT and Windows Phone 8

I have done a bit of reading into JIT compiling code because I want to port and emulator to Windows Phone 8 and Windows RT but I have noticed that Microsoft has disallowed the VirtualProtect() and related APIs neccessary to execute a block of memory…
Gerharddc
  • 3,921
  • 8
  • 45
  • 83
1
vote
0 answers

Xamarin.iOS "Attempting to JIT compile method" simple class

I have a Xamarin.iOS application. I am referencing an iOS Library project. In the library project, I have a very simple class. using System; namespace Noodle.iOS { public class TestClass { string property; public TestClass…
Paul Knopf
  • 9,568
  • 23
  • 77
  • 142
1
vote
1 answer

Same method has different entry address in native code?

I've written the following C# in .NET 4.5: public struct DisposableStruct : IDisposable { private readonly int _i, _j; public DisposableStruct(int i, int j) { _i = i; _j = j; } …
Jeffrey Zhao
  • 4,923
  • 4
  • 30
  • 52
1
vote
1 answer

Android Instrumentation Test concerns: debug vs. release mode

To automate tests, we are considering the Android instrumentation tests. However, we are concerning the performance may differ significantly if the unit tests are put in the debug mode. After doing some search, there seems no definitive answers.…
Farley
  • 1,160
  • 1
  • 10
  • 17
1
vote
1 answer

Lazily compiling .NET regular expressions in a separate thread

I've been working with a C# regular expression which is used heavily as part of a custom templating system in a web application. The expression is complex, and I have noticed real performance gains from using the Regex.Compiled option. However, the…
ChaseMedallion
  • 20,860
  • 17
  • 88
  • 152
1
vote
2 answers

Prevent Java 7 from premature GC

Similar to Can JIT be prevented from optimising away method calls? I'm attempting to track memory usage of long-lived data store objects, however I'm finding that if I initialize a store, log the system memory, then initialize another store,…
dimo414
  • 47,227
  • 18
  • 148
  • 244
1
vote
3 answers

jit assembler in C++, using C functions

I'm developing a simple JIT Assembly system in C++, but, I whant to call C functions in this jit system, so, what I have thinked... I need the pointer of the command... but, I don't know how I can get this... That is my code #include…
Alexandre
  • 1,985
  • 5
  • 30
  • 55