Re: Leaking Mach Ports?
Re: Leaking Mach Ports?
- Subject: Re: Leaking Mach Ports?
- From: Chris Sarcone <email@hidden>
- Date: Fri, 11 Mar 2005 12:40:28 -0800
Dirk --
After calling pthread_create() and pthread_detach() MachPortDump shows
these
additional ports:
0x6303 3
0x6403 1
0x6503 1 1
0x6603 1
0x6703 1
This makes up for five ports with a total of 4 send rights, 3 receive
rights
and a PortSet. 0x6303 is the result for mach_thread_self() in this
example.
After terminating the thread these rights still exist:
0x6303 2
which gives 2 DeadName rights.
How could I care for releasing these references?
I seem to recall that you have to call mach_port_deallocate() for any
port returned from mach_thread_self()...Are you doing that?
-- 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