• 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
Garbage Collection for Cocoa?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Garbage Collection for Cocoa?


  • Subject: Garbage Collection for Cocoa?
  • From: Keith Bauer <email@hidden>
  • Date: Sun, 02 Nov 2003 23:42:17 +1300

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?

Thanks for any help/advice/pearls of wisdom,
Keith
_______________________________________________
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.

  • Follow-Ups:
    • Re: Garbage Collection for Cocoa?
      • From: Frank Midgley <email@hidden>
    • Re: Garbage Collection for Cocoa?
      • From: Public Look <email@hidden>
    • Re: Garbage Collection for Cocoa?
      • From: Martin Häcker <email@hidden>
    • Re: Garbage Collection for Cocoa?
      • From: "Alastair J.Houghton" <email@hidden>
    • Re: Garbage Collection for Cocoa?
      • From: Vincent Coetzee <email@hidden>
  • Prev by Date: Strange PDF implementation
  • Next by Date: how to get domain from path?
  • Previous by thread: Strange PDF implementation
  • Next by thread: Re: Garbage Collection for Cocoa?
  • Index(es):
    • Date
    • Thread