• 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: Thread not registered mystery under GC
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Thread not registered mystery under GC


  • Subject: Re: Thread not registered mystery under GC
  • From: Bill Bumgarner <email@hidden>
  • Date: Tue, 26 Oct 2010 13:07:13 -0700

On Oct 26, 2010, at 12:42 PM, Sean McBride wrote:

> And presumably objc_unregisterThreadWithCollector() at the end of your
> thread's function... yes?

Yes;   it'll happen automatically on thread death, effectively.

Registering/unregistering a thread on the fly isn't really something that is supported well.   I.e. once a thread goes GC, it really should stay that way.

> Andy, also beware that those two functions are not properly marked as
> weak, and so if your deployment target is < 10.6 and even if you test
> them against NULL, you will crash. :(  <rdar://8508911>

Boo.  Thanks for the bug.

b.bum

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Thread not registered mystery under GC
      • From: Greg Parker <email@hidden>
References: 
 >Thread not registered mystery under GC (From: Andy O'Meara <email@hidden>)
 >Re: Thread not registered mystery under GC (From: Bill Bumgarner <email@hidden>)
 >Re: Thread not registered mystery under GC (From: "Sean McBride" <email@hidden>)

  • Prev by Date: Re: Make NSTextField register changes immediately
  • Next by Date: Re: Thread not registered mystery under GC
  • Previous by thread: Re: Thread not registered mystery under GC
  • Next by thread: Re: Thread not registered mystery under GC
  • Index(es):
    • Date
    • Thread