Don't tell a lie. The retain count representation of gnustep-base and

libobjc2 differs, so we cannot use the ARC retain/release implementation
for now.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@40181 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Wolfgang Lux 2016-10-27 15:00:17 +00:00
parent 5e2d923b78
commit 4cdf4004e8
2 changed files with 16 additions and 0 deletions

View file

@ -1,3 +1,9 @@
2016-10-27 Wolfgang Lux <wolfgang.lux@gmail.com>
* Source/NSObject.m: Comment out _ARCCompliantRetainRelease for
now because the retain count representation in gnustep-base and
libobjc2 differs causing space leaks on 64-bit architectures.
2016-10-24 Richard Frith-Macdonald <rfm@gnu.org>
* Source/NSData.m: Only atempt to read regular files into NSData,

View file

@ -735,7 +735,17 @@ NSShouldRetainWithZone (NSObject *anObject, NSZone *requestedZone)
* </p>
*/
@implementation NSObject
#if 0
/* Commented out for now, since the representation of object retain
* counts in gnustep-base and libobjc2 currently is not compatible.
* While gnustep-base uses int32_t libobjc2 uses intptr_t, which makes
* a difference on 64-bit architectures.
*/
// FIXME Rewrite retain/release to use objc_retain/objc_release and
// similarly object allocation to use class_createInstance when we
// are using libobjc2.
- (void)_ARCCompliantRetainRelease {}
#endif
+ (void) _becomeMultiThreaded: (NSNotification *)aNotification
{