• 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: Nicholas Riley <email@hidden>
  • Date: Mon, 3 Nov 2003 14:19:36 -0600
  • Mail-followup-to: Frank Midgley <email@hidden>, email@hidden

On Mon, Nov 03, 2003 at 01:01:52PM -0600, 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:
>
> http://developer.apple.com/documentation/DeveloperTools/gcc-3.3/gcc/
> Garbage-Collection.html
>
> Unfortunately you may have to build a custom copy of gcc, but it can be
> done. Not sure what the runtime requirements are...

That portion of the GCC documentation refers to the GNU Objective-C
runtime, not Apple's Objective-C runtime as used in OS X. So it'd
work with GNUstep, even on OS X, but not with Cocoa.

--
=Nicholas Riley <email@hidden> | <http://www.uiuc.edu/ph/www/njriley>
_______________________________________________
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: 
 >Garbage Collection for Cocoa? (From: Keith Bauer <email@hidden>)
 >Re: Garbage Collection for Cocoa? (From: Frank Midgley <email@hidden>)

  • Prev by Date: Re: Hex codes in plists
  • Next by Date: Re: NSTableView performance on Jaguar
  • Previous by thread: Re: Garbage Collection for Cocoa?
  • Next by thread: Re: Garbage Collection for Cocoa?
  • Index(es):
    • Date
    • Thread