mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
temporary workaround for crash
This commit is contained in:
parent
72ad2656c8
commit
57f78a6a7a
2 changed files with 18 additions and 0 deletions
|
@ -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:
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue