mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 00:41:02 +00:00
Minor GC tidyup
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@5121 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
df715a9198
commit
19c6525085
1 changed files with 13 additions and 0 deletions
|
@ -1678,6 +1678,11 @@ NSDefaultMallocZone (void)
|
|||
return __nszone_private_hidden_default_zone;
|
||||
}
|
||||
|
||||
NSZone* GSAtomicMallocZone (void)
|
||||
{
|
||||
return NSDefaultMallocZone();
|
||||
}
|
||||
|
||||
inline void*
|
||||
NSZoneMalloc (NSZone *zone, size_t size)
|
||||
{
|
||||
|
@ -1738,6 +1743,14 @@ NSZoneName (NSZone *zone)
|
|||
return zone->name;
|
||||
}
|
||||
|
||||
/* Not in OpenStep. */
|
||||
|
||||
void*
|
||||
NSZoneMallocAtomic (NSZone *zone, size_t size)
|
||||
{
|
||||
return NSZoneMalloc(GSAtomicMallocZone(), size);
|
||||
}
|
||||
|
||||
/* Not in OpenStep. */
|
||||
inline BOOL
|
||||
NSZoneCheck (NSZone *zone)
|
||||
|
|
Loading…
Reference in a new issue