Skip to content

Commit

Permalink
Add +[NSObject _TrivialAllocInit] to enable fast-path alloc / init me…
Browse files Browse the repository at this point in the history
…thods with libobjc2 2.2
  • Loading branch information
triplef committed Feb 6, 2024
1 parent d6bb6de commit 08a80ba
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
2024-02-06 Frederik Seiffert <frederik@algoriddim.com>

* Source/NSObject.m: add +[NSObject _TrivialAllocInit] to enable
fast-path alloc / init methods with libobjc2 2.2.

2024-02-02 Richard Frith-Macdonald <rfm@gnu.org>

Source/NSString.m: Return empty string of correct class when loading
Expand Down
3 changes: 2 additions & 1 deletion Source/NSObject.m
Original file line number Diff line number Diff line change
Expand Up @@ -950,7 +950,8 @@ static id retain_fast(id anObject)
*/
@implementation NSObject
#if defined(GS_ARC_COMPATIBLE)
- (void)_ARCCompliantRetainRelease {}
+ (void) _TrivialAllocInit {}
- (void) _ARCCompliantRetainRelease {}
#endif

/**
Expand Down

0 comments on commit 08a80ba

Please sign in to comment.