[Mono-dev] [patch] Clean up

Richard Sykes jitsua at gmail.com
Tue May 3 09:54:04 EDT 2011


Hi,

I'm new here (just signed up), following the
http://mono-project.com/Contributing #Ways to Contribute. If
okay/appropriate, I would like to throw into the ring suggested fixed as I
find them.
Constructive feedback is appreciated.
My motive/goal: To get this working...
MonoDomain* domain = mono_jit_init_version ("Root Domain", "v2.0.50727");
mono_jit_cleanup(domain);
domain = mono_jit_init_version ("Root Domain", "v2.0.50727");
The fix: The first one (of many) is very simple & trivial; set the
global_codeman back to NULL so that it goes through the correct code path in
function mono_global_codeman_reserve
My Code base: Tarball 2.10.2
File: mini.c
Function: mini_cleanup
Line: 6706 to 6707
Old code:

if (!mono_dont_free_global_codeman)

mono_code_manager_destroy (global_codeman);
New code:

if (!mono_dont_free_global_codeman)

{

mono_code_manager_destroy (global_codeman);

global_codeman = NULL;

}

Regards,


Richard Sykes.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20110503/183c06bb/attachment.html 


More information about the Mono-devel-list mailing list