discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: GC-optional mode: does anyone care?


From: David Chisnall
Subject: Re: GC-optional mode: does anyone care?
Date: Sat, 28 May 2011 13:08:23 +0100

On 28 May 2011, at 12:31, Sebastian Reitenbach wrote:

> Either way, if I could get both in one run, either with GC-optional mode, or 
> with creating both versions in parallel, would be the easiest.

Okay, so it probably is worth implementing.  I'll try to make a start on it 
this weekend.  

The stuff in the runtime should support it already, and (in theory) not much in 
-base needs changing.  I just need to make sure that everything in #ifdef 
__OBJC_GC__ blocks actually is retain / release safe, and make sure that:

- NSGarbageCollector returns nil if the GC is not running
- NSObject uses its own allocator with the reference counting headers and not 
the GC one, if NSGarbageCollector does not exist
- NSZone does the same switching
- Nothing runs in +load methods in -base / -gui / -back that could trigger any 
allocation before the final decision is made.

David
-- Sent from my STANTEC-ZEBRA




reply via email to

[Prev in Thread] Current Thread [Next in Thread]