temporary workaround for crash

This commit is contained in:
Richard Frith-Macdonald 2018-04-12 21:35:48 +01:00
parent 72ad2656c8
commit 57f78a6a7a
2 changed files with 18 additions and 0 deletions

View file

@ -1,3 +1,9 @@
2018-04-12 Richard Frith-Macdonald <rfm@gnu.org>
* Source/NSLock.m: Using class_createInstance() to allocate locks
seems to be causing memory issues and crashes somehow. Temporarily
comment out that code to try to get things working again.
2018-04-12 Richard Frith-Macdonald <rfm@gnu.org>
* Source/Additions/Unicode.m:

View file

@ -278,11 +278,14 @@ NSString *NSLockException = @"NSLockException";
+ (id) allocWithZone: (NSZone*)z
{
return [super allocWithZone: z];
/*
if (self == baseLockClass && YES == traceLocks)
{
return class_createInstance(tracedLockClass, 0);
}
return class_createInstance(self, 0);
*/
}
+ (void) initialize
@ -388,11 +391,14 @@ MUNLOCK
+ (id) allocWithZone: (NSZone*)z
{
return [super allocWithZone: z];
/*
if (self == baseRecursiveLockClass && YES == traceLocks)
{
return class_createInstance(tracedRecursiveLockClass, 0);
}
return class_createInstance(self, 0);
*/
}
+ (void) initialize
@ -429,11 +435,14 @@ MUNLOCK
+ (id) allocWithZone: (NSZone*)z
{
return [super allocWithZone: z];
/*
if (self == baseConditionClass && YES == traceLocks)
{
return class_createInstance(tracedConditionClass, 0);
}
return class_createInstance(self, 0);
*/
}
+ (void) initialize
@ -529,11 +538,14 @@ MUNLOCK
+ (id) allocWithZone: (NSZone*)z
{
return [super allocWithZone: z];
/*
if (self == baseConditionLockClass && YES == traceLocks)
{
return class_createInstance(tracedConditionLockClass, 0);
}
return class_createInstance(self, 0);
*/
}
+ (void) initialize