On 27/01/17 22:18, Dmitry Boyarintsev wrote:
How about moving "nil"-ing of the reference into default FreeInstance for JVM target?
FreeInstance is a regular instance method. Instance methods cannot nil the self pointer (well, they can, but that will just nil the local copy of the self-pointer).
The whole point of removing the reference, is to let the collector to dispose of the object as soon as possible.
The collector only runs very occasionally. If you need instant freeing, a garbage-collected platform is not what you want.
Jonas _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal