Re: Kalloc and lck_mtx_lock
Re: Kalloc and lck_mtx_lock
- Subject: Re: Kalloc and lck_mtx_lock
- From: Michael Smith <email@hidden>
- Date: Fri, 10 Jul 2009 21:00:57 -0700
On Jul 10, 2009, at 2:12 PM, Greg wrote:
...
If you are aware of all of these kinds of scenarios and you have taken measures against them then it's possible to safely allocate memory while holding a lock, but due to the complexity of the relationships involved this is general discouraged, hence the convention of releasing a lock when allocating memory.
Hope I haven't messed up the explanation (feel free to correct me)!
No, you've got the key parts (things are complicated, avoid making assumptions, keep your expectations simple) spot on.
= Mike
-- The lyf so short, the craft so long to lerne -- Chaucer
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden