[fpc-pascal] ppcjvm issues

Jonas Maebe jonas at freepascal.org
Fri Jan 27 22:55:47 CET 2017


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



More information about the fpc-pascal mailing list