mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
defer setting lock name to try to avoid crash on bsd
This commit is contained in:
parent
3ced3237e8
commit
bb85bd426c
2 changed files with 10 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
2018-04-10 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* Source/NSObject.m: Don't set the name of trhe global lock until
|
||||
after we have make sure that strings and autorlrease are set up.
|
||||
|
||||
2018-04-10 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* Source/Additions/Unicode.m:
|
||||
|
|
|
@ -1055,7 +1055,6 @@ static id gs_weak_load(id obj)
|
|||
* any use of the autorelease system.
|
||||
*/
|
||||
gnustep_global_lock = [GSUntracedRecursiveLock new];
|
||||
[gnustep_global_lock setName: @"gnustep_global_lock"];
|
||||
|
||||
/* Behavior debugging ... enable with environment variable if needed.
|
||||
*/
|
||||
|
@ -1084,6 +1083,11 @@ static id gs_weak_load(id obj)
|
|||
|
||||
GSPrivateBuildStrings();
|
||||
|
||||
/* Now that the string class (and autorelease) is set up, we can set
|
||||
* the name of the lock to a string value safely.
|
||||
*/
|
||||
[gnustep_global_lock setName: @"gnustep_global_lock"];
|
||||
|
||||
/* Determine zombie management flags and set up a map to store
|
||||
* information about zombie objects.
|
||||
*/
|
||||
|
|
Loading…
Reference in a new issue