From 553e1540b5fac8c0cde2de221850942d0f74ee5b Mon Sep 17 00:00:00 2001 From: nico Date: Thu, 19 Apr 2001 16:11:36 +0000 Subject: [PATCH] Implemented tracking all allocated instances of a class for debugging purposes git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@9628 72102866-910b-0410-8b05-ffd578937521 --- ChangeLog | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/ChangeLog b/ChangeLog index e5ef9bb4d..ab000366d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,23 @@ +2001-04-19 Nicola Pero + + To help with debugging memory leaks, you can now ask to the + library to track all allocated instances of a certain class. + * Source/NSDebug.m (table_entry): Added fields to allow recording + the list of allocated instances if required. + (GSDebugAllocationActiveRecordingObjects): New function. + (GSDebugAllocationAdd): Modified to take an additional argument - + the object being allocated -, and to record it in the list of + instances for the class if recording instances of that class has + been activated. + (GSDebugAllocationRemote): Add a similar additional argument; + remove the object from the list of instances if recording + instances is activated. + (GSDebugAllocationListRecordedObjects): New function. + * Source/NSObject.m: Updated all occurrences of + GSDebugAllocationAdd and GSDebugAllocationRemove to pass the + allocated/removed object as well. + * Headers/gnustep/base/NSDebug.h: Updated. + 2001-04-19 Nicola Pero * Source/GSTcpPort.m ([GSTcpPort -dealloc]): Fixed memory leak: