Patent ID: 6658653
Filing Date: 2003-12-02
Classification: G06F

Abstract:
A method for debugging problems arising from misuse of memory available for dynamic allocation during execution of code, the code including a plurality of memory allocators and a plurality of memory deallocators, the method comprising:for each deallocator called to free a memory block: (i) determining an associated allocator responsible for allocating the memory block; and then (ii) storing, in a data structure, a reference to the deallocator and a reference to the associated allocator; whereby a relationship between each deallocator called and each associated allocator is recorded; receiving a user request to view a call to free memory allocated by a specific allocator referenced in the data structure; in response to the user request, accessing the data structure to identify a call to a deallocator corresponding to the specific allocator; and displaying, through a debugger user interface, a location in the code where the call to the deallocator corresponding to the specific allocator was made.