Patent ID: 7870358

Claim:
A method for detecting and isolating a plurality of memory leak blocks using a sequence number, comprising: utilizing a sequence number for indicating an order of memory allocation in a data-processing system, wherein said sequence number comprises a plurality of unsigned integers with an initial value of zero; dividing a memory into a plurality of sequence number zones and thereafter monitoring a count of a plurality of un-freed memory blocks after a finish of a start-of-day (SOD) operation; detecting said plurality of memory leak blocks when said count of said plurality of un-freed memory blocks for sequence number zones after said finish of said SOD operation, but smaller than a current sequence number zone, is not eventually decremented to zero, in order to thereby detect and isolate a plurality of memory leak blocks associated with said data-processing system; and instantiating a plurality of global data structures by allocating memory in said data-processing system prior to using said sequence number for indicating said order of memory allocation in said data-processing system.