Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 24 Mar 2000 00:49:34 -0700 (MST)
From:      Chad David <davidc@acns.ab.ca>
To:        Matthew Dillon <dillon@apollo.backplane.com>
Cc:        freebsd-hackers@FreeBSD.ORG
Subject:   Re: vm_await()
Message-ID:  <Pine.BSF.4.21.0003240045150.12954-100000@lodge.guild.ab.ca>
In-Reply-To: <200003240735.XAA08970@apollo.backplane.com>

next in thread | previous in thread | raw e-mail | index | archive | help
In the case of malloc(), wmesg is set to type->ks_shortdesc, which is
not part of the current functions stack, so it is safe for malloc
to return.  Unless I am wrong, "string", is an automatic variable, and
when the current function returns it is no longer vaild.

With tsleep() this would never be a problem as tsleep() blocks.

Chad

On Thu, 23 Mar 2000, Matthew Dillon wrote:

> 
> :I didn't mean the wait (ident) address, but instead the wmesg
> :address, which is placed in p->p_wmesg, and I think later read
> :by things like top... or am I being obtuse :).
> :
> :Chad
> 
>     The wmesg is always a string constant.  Is there a case where it
>     isn't?
> 
> 					-Matt
> 



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0003240045150.12954-100000>