removal of garbage collection

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39608 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2016-03-25 11:15:28 +00:00
parent 030f54a9cf
commit d40d219015
72 changed files with 122 additions and 1787 deletions

View file

@ -62,11 +62,6 @@
#define GSI_MAP_EQUAL(M, X,Y) [(X).obj isEqualToString: (Y).obj]
#define GSI_MAP_NOCLEAN 1
#if GS_WITH_GC
#define GSI_MAP_NODES(M, X) \
(GSIMapNode)NSAllocateCollectable(X * sizeof(GSIMapNode_t), 0)
#endif
#include "GNUstepBase/GSIMap.h"
/*
@ -555,11 +550,7 @@ deserializeFromInfo(_NSDeserializerInfo* info)
char *b;
size = (*info->deiImp)(info->data, deiSel, info->cursor);
#if GS_WITH_GC
b = NSAllocateCollectable(size, 0);
#else
b = NSZoneMalloc(NSDefaultMallocZone(), size);
#endif
(*info->debImp)(info->data, debSel, b, size, info->cursor);
s = [[StringClass alloc] initWithBytesNoCopy: b
length: size - 1
@ -591,11 +582,7 @@ deserializeFromInfo(_NSDeserializerInfo* info)
unichar *b;
size = (*info->deiImp)(info->data, deiSel, info->cursor);
#if GS_WITH_GC
b = NSAllocateCollectable(size*sizeof(unichar), 0);
#else
b = NSZoneMalloc(NSDefaultMallocZone(), size*sizeof(unichar));
#endif
(*info->debImp)(info->data, debSel, b, size*sizeof(unichar),
info->cursor);
s = [[StringClass alloc] initWithBytesNoCopy: b