Module Name: src Committed By: pooka Date: Mon Jul 20 17:12:43 UTC 2009
Modified Files: src/sys/rump/librump/rumpkern: emul.c Log Message: realloc works much better if it actually uses realloc instead of malloc To generate a diff of this commit: cvs rdiff -u -r1.90 -r1.91 src/sys/rump/librump/rumpkern/emul.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/rump/librump/rumpkern/emul.c diff -u src/sys/rump/librump/rumpkern/emul.c:1.90 src/sys/rump/librump/rumpkern/emul.c:1.91 --- src/sys/rump/librump/rumpkern/emul.c:1.90 Tue Jun 9 14:30:06 2009 +++ src/sys/rump/librump/rumpkern/emul.c Mon Jul 20 17:12:43 2009 @@ -1,4 +1,4 @@ -/* $NetBSD: emul.c,v 1.90 2009/06/09 14:30:06 pooka Exp $ */ +/* $NetBSD: emul.c,v 1.91 2009/07/20 17:12:43 pooka Exp $ */ /* * Copyright (c) 2007 Antti Kantee. All Rights Reserved. @@ -28,7 +28,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: emul.c,v 1.90 2009/06/09 14:30:06 pooka Exp $"); +__KERNEL_RCSID(0, "$NetBSD: emul.c,v 1.91 2009/07/20 17:12:43 pooka Exp $"); #include <sys/param.h> #include <sys/malloc.h> @@ -292,7 +292,7 @@ kern_realloc(void *ptr, unsigned long size, struct malloc_type *type, int flags) { - return rumpuser_malloc(size, (flags & (M_CANFAIL | M_NOWAIT)) != 0); + return rumpuser_realloc(ptr, size, (flags & (M_CANFAIL|M_NOWAIT)) != 0); } void