mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
Use NSClassFromString() to look up NSZombie class. This has two advantages:
1) Doesn't rely on Apple-incompatible behaviour in the GCC runtime that introduces fun heisenbugs. 2) Doesn't require constructing the dtable for NSZombie if we're not actually using it. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32039 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
0d28d838fd
commit
0239c9b9a5
1 changed files with 1 additions and 1 deletions
|
@ -964,7 +964,7 @@ objc_create_block_classes_as_subclasses_of(Class super) __attribute__((weak));
|
|||
// Zombie management stuff.
|
||||
zombieMap = NSCreateMapTable(NSNonOwnedPointerMapKeyCallBacks,
|
||||
NSNonOwnedPointerMapValueCallBacks, 0);
|
||||
zombieClass = [NSZombie class];
|
||||
zombieClass = NSClassFromString(@"NSZombie");
|
||||
NSZombieEnabled = GSPrivateEnvironmentFlag("NSZombieEnabled", NO);
|
||||
NSDeallocateZombies = GSPrivateEnvironmentFlag("NSDeallocateZombies", NO);
|
||||
|
||||
|
|
Loading…
Reference in a new issue