[Ironpython-users] Some questions about gc and finalizers
m.schaber at codesys.com
Fri Sep 19 16:02:07 CEST 2014
I checked whether the ETW Events of the .NET Framework could be helpful, at least a bit:
The GCHeapStats_V1 event delivers a FinalizationPromotedCount.
The GCFinalizersEnd_V1 event comes with a Count: "The number of finalizers that were run".
But both is not equal to the number of "unreachable objects", as they also contain the objects without finalizers.
Personally, I tend to think we should overestimate those methods for real-life usage.
Things like gc.get_referrers or gc.get_referents are not really useful in .NET or Java context, and only very expensive to emulate.
There are other places where compatibility to cPython has more critical problems.
CODESYS® a trademark of 3S-Smart Software Solutions GmbH
Inspiring Automation Solutions
3S-Smart Software Solutions GmbH
Dipl.-Inf. Markus Schaber | Product Development Core Technology
Memminger Str. 151 | 87439 Kempten | Germany
Tel. +49-831-54031-979 | Fax +49-831-54031-50
E-Mail: m.schaber at codesys.com | Web: http://www.codesys.com | CODESYS store: http://store.codesys.com
CODESYS forum: http://forum.codesys.com
Managing Directors: Dipl.Inf. Dieter Hess, Dipl.Inf. Manfred Werner | Trade register: Kempten HRB 6186 | Tax ID No.: DE 167014915
This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received
this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorised copying, disclosure
or distribution of the material in this e-mail is strictly forbidden.
More information about the Ironpython-users