mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-21 04:32:03 +00:00
Minor fix for zombies and new tool added.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@13363 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
c66d2c6427
commit
622cacf55f
8 changed files with 156 additions and 8 deletions
|
@ -85,12 +85,12 @@ static void GSMakeZombie(NSObject *o)
|
|||
((id)o)->class_pointer = zombieClass;
|
||||
if (NSDeallocateZombies == NO)
|
||||
{
|
||||
if (allocationLock == 0)
|
||||
if (allocationLock != 0)
|
||||
{
|
||||
objc_mutex_lock(allocationLock);
|
||||
}
|
||||
NSMapInsert(zombieMap, (void*)o, (void*)c);
|
||||
if (allocationLock == 0)
|
||||
if (allocationLock != 0)
|
||||
{
|
||||
objc_mutex_unlock(allocationLock);
|
||||
}
|
||||
|
@ -103,12 +103,12 @@ static void GSLogZombie(id o, SEL sel)
|
|||
|
||||
if (NSDeallocateZombies == NO)
|
||||
{
|
||||
if (allocationLock == 0)
|
||||
if (allocationLock != 0)
|
||||
{
|
||||
objc_mutex_lock(allocationLock);
|
||||
}
|
||||
c = NSMapGet(zombieMap, (void*)o);
|
||||
if (allocationLock == 0)
|
||||
if (allocationLock != 0)
|
||||
{
|
||||
objc_mutex_unlock(allocationLock);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue