[Mono-dev] Leaky JIT while running MonoDevelop
casey.s.marshall at gmail.com
Thu Aug 14 19:22:05 EDT 2008
Rodrigo Kumpera wrote:
> Hi Casey,
> I have an idea on what might be the cause of the leak, and it only
> happens under amd64 and aot.
> Under amd64 mono_analyze_liveness2 is called from mono_analyze_liveness
> if aot is enabled.
> This will set MonoMethodVar::interval for a bunch of vars.
> In mono_linear_scan, if ->internal is set it calls mono_linear_scan2 and
> return. Notice that
> mono_linear_scan release the supplied lists, "vars" and "regs", while
> mono_linear_scan2 doesn't.
I'm working from the mono-2-0 branch, and that doesn't have a
> I don't have an amd64 setup here, but could you test if the following
> change fix your issue:
> Index: mono/mini/linear-scan.c
> --- mono/mini/linear-scan.c (revision 110530)
> +++ mono/mini/linear-scan.c (working copy)
> @@ -509,4 +510,6 @@
> g_list_free (active);
> g_list_free (inactive);
> + g_list_free (vars);
> + g_list_free (regs);
More information about the Mono-devel-list