[Mono-dev] When does JIT reuse memory for new methods

Jonathan Pryor jonpryor at vt.edu
Sun Feb 18 20:53:14 EST 2007


On Sun, 2007-02-18 at 15:42 -0800, Muath A. Khalaf wrote:
> Now I am trying to find the place where a memory chunk allocated for a
> method by the JIT is reused for another method when JIT runs out of
> memory. I have seen that all JITing is done in a memory pool
> temporarily and then a code manager (for each domain) is used to find
> a chunk with a space for the new code or allocate a new one. One thing
> I did not get is that code manager always allocates a new chunk and
> never delete previous filled chunks. Instead they are moved to the
> full list. So where exactly is the place where JIT starts to free some
> memory for new methods. 

As Andreas Nahr mentioned, this is probably done during AppDomain
unload.

> Also what about the reJITed methods?

AFAIK, re-JITing is not supported at this time.  Some had looked into it
a few years ago, iirc, but I don't believe this ever made it back into
Mono proper (I believe it was a graduate research project).

 - Jon






More information about the Mono-devel-list mailing list