Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/uvm No need to zero clear after amap->am_bckptr[amap->am...
details: https://anonhg.NetBSD.org/src/rev/57abb0bac2ed
branches: trunk
changeset: 518739:57abb0bac2ed
user: enami <enami%NetBSD.org@localhost>
date: Wed Dec 05 00:34:05 2001 +0000
description:
No need to zero clear after amap->am_bckptr[amap->am_nslot], since we're
clearing corresponding elements in an array amap->am_anon[].
diffstat:
sys/uvm/uvm_amap.c | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
diffs (26 lines):
diff -r 7b9caa328ef7 -r 57abb0bac2ed sys/uvm/uvm_amap.c
--- a/sys/uvm/uvm_amap.c Wed Dec 05 00:00:10 2001 +0000
+++ b/sys/uvm/uvm_amap.c Wed Dec 05 00:34:05 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: uvm_amap.c,v 1.38 2001/12/01 22:11:13 chuck Exp $ */
+/* $NetBSD: uvm_amap.c,v 1.39 2001/12/05 00:34:05 enami Exp $ */
/*
*
@@ -42,7 +42,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uvm_amap.c,v 1.38 2001/12/01 22:11:13 chuck Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uvm_amap.c,v 1.39 2001/12/05 00:34:05 enami Exp $");
#undef UVM_AMAP_INLINE /* enable/disable amap inlines */
@@ -404,7 +404,6 @@
/* do am_bckptr */
oldbck = amap->am_bckptr;
memcpy(newbck, oldbck, sizeof(int) * amap->am_nslot);
- memset(newbck + amap->am_nslot, 0, sizeof(int) * slotadded); /* XXX: needed? */
amap->am_bckptr = newbck;
#ifdef UVM_AMAP_PPREF
Home |
Main Index |
Thread Index |
Old Index