[Issue 6666] gc finalization/freeing is hierarchy agnostic
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Sep 13 18:04:40 PDT 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6666
Vladimir Panteleev <thecybershadow at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |thecybershadow at gmail.com
--- Comment #1 from Vladimir Panteleev <thecybershadow at gmail.com> 2011-09-13 18:04:22 PDT ---
This is known, documented behavior. From
http://www.d-programming-language.org/class.html#destructors :
> Furthermore, the order in which the garbage collector calls destructors for unreference objects is not specified. This means that when the garbage collector calls a destructor for an object of a class that has members that are references to garbage collected objects, those references may no longer be valid. This means that destructors cannot reference sub objects.
(In reply to comment #0)
> It seems like we need to somehow sort the to be finalized memory while
> scanning.
What about cyclic references?
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list