mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-20 12:16:40 +00:00
simplify GC ... don't need to add new zone
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@27783 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
be86199404
commit
0e2e58bf87
18 changed files with 59 additions and 67 deletions
|
@ -156,7 +156,7 @@ NSCopyHashTableWithZone(NSHashTable *table, NSZone *zone)
|
|||
}
|
||||
|
||||
#if GS_WITH_GC
|
||||
zone = GSScannedMallocZone();
|
||||
zone = GSIMapStrongKeyAndVal;
|
||||
#endif
|
||||
t = (GSIMapTable)NSZoneMalloc(zone, sizeof(GSIMapTable_t));
|
||||
GSIMapInitWithZoneAndCapacity(t, zone, ((GSIMapTable)table)->nodeCount);
|
||||
|
@ -217,7 +217,7 @@ NSCreateHashTableWithZone(
|
|||
GSIMapTable table;
|
||||
|
||||
#if GS_WITH_GC
|
||||
zone = GSScannedMallocZone();
|
||||
zone = GSIMapStrongKeyAndVal;
|
||||
#endif
|
||||
table = (GSIMapTable)NSZoneMalloc(zone, sizeof(GSIMapTable_t));
|
||||
GSIMapInitWithZoneAndCapacity(table, zone, capacity);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue