garbage collection fixups

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@27578 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2009-01-12 12:48:46 +00:00
parent 43ad91f79e
commit 952af9c197
65 changed files with 707 additions and 214 deletions

View file

@ -123,6 +123,7 @@ BOOL NSDeallocateZombies = NO;
static Class zombieClass;
static NSMapTable zombieMap;
#if !GS_WITH_GC
static void GSMakeZombie(NSObject *o)
{
Class c = ((id)o)->class_pointer;
@ -141,6 +142,7 @@ static void GSMakeZombie(NSObject *o)
}
}
}
#endif
static void GSLogZombie(id o, SEL sel)
{
@ -384,7 +386,7 @@ typedef struct obj_layout *obj;
#include "GNUstepBase/GSIMap.h"
static GSIMapTable_t retain_counts = {0};
IF_NO_GC(static GSIMapTable_t retain_counts = {0};)
#endif /* !defined(REFCNT_LOCAL) */
@ -701,7 +703,7 @@ NSAllocateObject(Class aClass, unsigned extraBytes, NSZone *zone)
}
else if ([aClass requiresTypedMemory])
{
new = GC_CALLOC_EXPLICTLY_TYPED(1, size, gc_type);
new = GC_calloc_explicitly_typed(1, size, gc_type);
}
else
{