On Tue, Jan 01, 2008 at 01:24:49PM -0800, John Reiser wrote:
> The web page  http://bitwagon.com/valgrind+uml/index.html
> now exists with news, history, commentary, scripts, links
> on getting User Mode Linux for i686 to run under memcheck on i686.

You refer to kmalloc and kfree as keeping object state intact between
kfree and kmalloc, thus not being semantically the same as malloc and
free.  However, this is true of kmem_cache_alloc and kmem_cache_free,
not kmalloc and kfree.

Object contents are destroyed between kfree and kmalloc.

As far as kmem_cache_alloc and kmem_cache_free are concerned, would it
work to say that they are like malloc and free, except that if there's
a constructor, it is always called before kmem_cache_alloc returns?

                                Jeff

-- 
Work email - jdike at linux dot intel dot com

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

Reply via email to