[Mono-dev] [patch] Clean up

Stifu stifu at free.fr
Tue May 3 10:37:13 EDT 2011


Hi,

I guess you could either file a bug report with an attached patch (diff),
and/or do a pull request on git. This way, your patch won't get lost.


Richard Sykes wrote:
> 
> 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.
> 
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
> 


--
View this message in context: http://mono.1490590.n4.nabble.com/patch-Clean-up-tp3492512p3492619.html
Sent from the Mono - Dev mailing list archive at Nabble.com.


More information about the Mono-devel-list mailing list