Re: Leaking Mach Ports?
Re: Leaking Mach Ports?
- Subject: Re: Leaking Mach Ports?
- From: Chris Sarcone <email@hidden>
- Date: Thu, 10 Mar 2005 12:03:15 -0800
Dirk --
One thing seems to be that from every pthread remains a port. Is that
leaked? How can I release that port?
Are you creating the threads with the "detached" attribute or calling
pthread_join()? If not, that's probably a good explanation for your
leaks.
One other thing is our use of the CFMessagePort communication. Every
call to
CFMessagePortCreateRemote() as well as some other calls from the
CFMessagePort suite increases the number of send rights for a special
port,
but CFRelease() doesn't lower it again. Is that expected behaviour?
Are you also detaching and releasing the runloop sources associated
with the message port? I believe those might add a retain to the
message port and therefore prevent the mach port from being released...
HTH,
-- Chris
------------------
6 Infinite Loop
M/S 306-2MS
Cupertino CA 95014
phone: (408) 974-4033
fax: (408) 862-7577
email: email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden