DConf 2013 Day 2 Talk 2: Shared Libraries in D by Martin Nowak

Diggory diggsey at googlemail.com
Wed May 29 19:12:54 PDT 2013


With regard to the last point in the talk where Walter was 
suggesting not calling finalizers on objects whose code has been 
unloaded - would it not make more sense to simply call all the 
finalizers before unloading the library?

If the finalizer is not called you will potentially get resource 
leaks - although there's no guarantee currently that it will be 
called, isn't there the assumption that if it's not called the 
object still exists, even if it's not referenced anywhere? ie. 
you still have some guarantee that if you keep allocating objects 
and then unreferencing them that the number of unfinalized 
objects will never exceed some large but fixed value.


More information about the Digitalmars-d-announce mailing list