mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 00:11:26 +00:00
More GC fixes. Most notably, mark the thread object as not collectable, since it's hidden away in TLS where the GC can't find it.
GC now works well enough for LanguageKit to run. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33123 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
8da9a5ecbb
commit
de2fd8df6e
7 changed files with 29 additions and 7 deletions
|
@ -72,11 +72,13 @@
|
|||
locked = -1;
|
||||
}
|
||||
|
||||
#ifdef __GS_WITH_GC__
|
||||
- (void) finalize
|
||||
{
|
||||
[[NSNotificationCenter defaultCenter] removeObserver: self];
|
||||
[super finalize];
|
||||
}
|
||||
#endif
|
||||
|
||||
- (id) init
|
||||
{
|
||||
|
@ -214,11 +216,13 @@
|
|||
counter = -1;
|
||||
}
|
||||
|
||||
#ifdef __GS_WITH_GC__
|
||||
- (void) finalize
|
||||
{
|
||||
[[NSNotificationCenter defaultCenter] removeObserver: self];
|
||||
[super finalize];
|
||||
}
|
||||
#endif
|
||||
|
||||
- (id) init
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue