mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 16:30:41 +00:00
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:
parent
2c9683175f
commit
d304d9ee34
65 changed files with 707 additions and 214 deletions
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue