Where would the code produced by the JIT would reside

130 views Asked by At

An article from CLR via C# by Jeffery Ritcher. "When calling a virtual instance method, the JIT compiler produces some additional code in the method, which will be executed each time the method is invoked. This code will first look in the variable being used to make the call and then follow the address to the calling object."

My question is where would the additional code generated by JIT would reside.

1

There are 1 answers

0
Hadi Brais On

The JIT compiler uses an internal code heap from which to allocate memory to store the generated code. Ultimately, the code heap manager uses the VirtualAlloc function to allocate memory.