• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Garbage Collection for Cocoa?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Garbage Collection for Cocoa?


  • Subject: Re: Garbage Collection for Cocoa?
  • From: "Alastair J.Houghton" <email@hidden>
  • Date: Mon, 3 Nov 2003 21:01:47 +0000

On Monday, November 3, 2003, at 07:01 pm, Frank Midgley wrote:

On Nov 2, 2003, at 4:42AM, Keith Bauer wrote:

I've been idly wondering whether it would be possible to get garbage collection in Objective C.

The Boehm-Demers-Weiser collector (used by GCJ, d2c, &c) seems quite stable on Mac OS X these days, so hopefully it would just be a matter of slotting GC_malloc into appropriate places in the ObjC runtime...

Does anyone know where I should start? Override +alloc for NSObject maybe? Or even lower -- somehow replace NSAllocateObject? Or lower still -- actually replace the system malloc?

Are there any obvious pitfalls awaiting me here?

I'm afraid Apple beat you to it by using a current gcc:

I'm afraid they didn't :-)

*That* documentation is talking about the GNU Objective-C runtime (click the "Up" link and it actually even says so). Apple don't use that... they use a derivative of the NeXT Objective-C runtime.

Kind regards,

Alastair.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: Garbage Collection for Cocoa? (From: Frank Midgley <email@hidden>)

  • Prev by Date: Re: Cocoa Cross Development
  • Next by Date: Re: Security Framework: authorization rights.
  • Previous by thread: Re: Garbage Collection for Cocoa?
  • Next by thread: how to get domain from path?
  • Index(es):
    • Date
    • Thread