[fpc-devel]Improvements for heaptrc.pp

Peter Vreman peter at freepascal.org
Wed Sep 4 16:46:37 CEST 2002


> > What can be a speed improvement is to have a value that determines how > > heap is
checked. So you can do it only once for each 10 allocations.
> 
> Good idea.
> This Frequency should be a public variable, so it can be changed at any time.
> I use the CheckHeap procedure to binary search heap destructions in programs with
millions
of allocations. You can imagine, that each heap check costs a lot of time. But with
CheckHeap, binary search and of course the speedy fpc, you can track down bugs in minutes,
that would cost in other languages days to find.
> 
> 
> > Also checkpointer can shall be extended with a possibility to check if the pointer is
not
> > in one of the freed memory blocks. Together with the keep_released flag it can then be
> > used to find dangling pointers.
> 
> :)
> 
> Who will do it?

I'll do it, so you can continue your good work on Lazarus :)







More information about the fpc-devel mailing list