* Xavier Galleri <[EMAIL PROTECTED]> [010111 11:27] wrote:
> Hi everybody,
> 
> I have reached a point where I am wondering if a call to 'malloc' with 
> the M_NOWAIT flag is not falling asleep !

M_NOWAIT shouldn't sleep.

> In fact, I suspect that the interrupted context is somewhere during a 
> call to 'malloc' (I increment a counter just before calling malloc and 
> increment another just after and the difference is one !) while I have 
> called 'splnet' beforehand, thus normally preventing competing with any 
> network isr. I assume that this shouldnever occur unless the code is 
> somewhere calling 'sleep' and provoke acontext switch.

if you add 1 to a variable the difference is expected to be one.

> Is there anybody who can help on this ?

I'm not sure, you need to be more specific/clear.

-- 
-Alfred Perlstein - [[EMAIL PROTECTED]|[EMAIL PROTECTED]]
"I have the heart of a child; I keep it in a jar on my desk."


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to