[fpc-devel] Why/how does the compiler have a non-trivial number ofmemory leaks after over two decades of development?
Michael Van Canneyt
michael at freepascal.org
Mon Jul 30 17:24:14 CEST 2018
On Mon, 30 Jul 2018, Sven Barth via fpc-devel wrote:
> Michael Van Canneyt <michael at freepascal.org> schrieb am Mo., 30. Juli 2018,
> 15:30:
>
>> Obviously provided you don't install another mechanism that does this and
>> don't raise exceptions manually, which - AFAIK - is the case in the
>> compiler...
>>
>
> The compiler does use exceptions when the compilation needs to be aborted
> e.g. when too many errors occurred or an internal error is encountered.
This is bad news, because it in effect means that the try/finally is necessary
if people want to fix memleaks :(
This will considerably slow down the compiler.
Michael.
More information about the fpc-devel
mailing list