Changes between Initial Version and Version 1 of Ticket #22164, comment 35


Ignore:
Timestamp:
02/01/17 09:06:06 (3 years ago)
Author:
jdemeyer
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #22164, comment 35

    initial v1  
    11I remember discussing this for another application.
    22
    3 The best way to check that `foo()` does not leak memory is to run `foo()` a number of times and record the memory usage m,,i,, after each call of `foo()`. There is no memory leak if, for some index i, we have m,,i+j,, ≤ m_i for all j = 1, ..., N (for some suitable fixed value of N like N=10).
     3The best way to check that `foo()` does not leak memory is to run `foo()` a number of times and record the memory usage m,,i,, after each call of `foo()`. There is no memory leak if, for some index i, we have m,,i+j,, ≤ m,,i,, for all j = 1, ..., N (for some suitable fixed value of N like N=10).
    44
    55Put in a different way: there is no memory leak if you are able to run `foo()` N times where the memory never increases beyond the initial memory usage, but allowing for a few initial calls of `foo()` where the memory is allowed to increase.