[Mono-devel-list] AW: AW: appdomains_list

Dietmar Maurer dietmar at maurer-it.com
Thu Jul 10 04:28:35 EDT 2003


But we can add it to mono_runtime_cleanup() ?

- Dietmar

> -----Urspr¨¹ngliche Nachricht-----
> Von: He HongFu [mailto:hfhe at stryon.com] 
> Gesendet: Donnerstag, 10. Juli 2003 17:49
> An: Dietmar Maurer
> Betreff: Re: AW: appdomains_list
> 
> 
> Dietmar Maurer:
> 
> 	Yes, we can add code :
>  	  if (mono_g_hash_table_size(appdomains_list) == 0) {
> 		mono_g_hash_table_destroy (appdomains_list);
> 		appdomains_list = NULL;
>    	  }
> 	at mono_domain.unload() function.
> 	
> 	but if user write some code following:
> 
>     	AppDomain newDomain = 
> AppDomain.CreateDomain("newDomain", evidence, setup);
> 
> 	and don't to call AppDomain.Unload(newDomain). Mono 
> cannot cleanup this domain when JIT ends.
> 	
> 
> ======= 2003-07-10 08:38:00 =========================
> 
> >> -----Ursprüngliche Nachricht-----
> >> Von: He HongFu [mailto:hfhe at stryon.com]
> >> Gesendet: Mittwoch, 09. Juli 2003 03:01
> >> An: dietmar at ximian.com
> >> Betreff: 
> >> 
> >> 
> >> Hi, Dietmar Maurer:
> >>     in function mono_init() located at file domain.c,
> >> allocated a new hashtable for global variable 
> >> "appdomains_list', I think it is felicitous to release the 
> >> global varialbe at function mono_domain_unload(), which 
> >> destroy a domain allocated by mono_init(), OK?
> >
> >No, mono_domain_unload() only unloads a single domian, but we use 
> >appdomains_list during the lifetime of an application (not 
> the lifetime 
> >of a domain).
> >
> >Maybe it would be possible to check how many domains are 
> alive. If we 
> >unload the last appdomain we can also release appdomains_list.
> >
> >- Dietmar
> 
> = = = = = = = = = = = = = = = = = = = =
> 			
> 
> 			 
> ¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡He HongFu
> ¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡hfhe at stryon.com
> ¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡2003-07-10
> 
> 
> 



More information about the Mono-devel-list mailing list