Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/uvm assertion



details:   https://anonhg.NetBSD.org/src/rev/4ced2c90650c
branches:  trunk
changeset: 770314:4ced2c90650c
user:      yamt <yamt%NetBSD.org@localhost>
date:      Tue Oct 11 23:57:50 2011 +0000

description:
assertion

diffstat:

 sys/uvm/uvm_amap.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r ee392975eec2 -r 4ced2c90650c sys/uvm/uvm_amap.c
--- a/sys/uvm/uvm_amap.c        Tue Oct 11 23:57:07 2011 +0000
+++ b/sys/uvm/uvm_amap.c        Tue Oct 11 23:57:50 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: uvm_amap.c,v 1.103 2011/08/17 20:46:27 rmind Exp $     */
+/*     $NetBSD: uvm_amap.c,v 1.104 2011/10/11 23:57:50 yamt Exp $      */
 
 /*
  * Copyright (c) 1997 Charles D. Cranor and Washington University.
@@ -35,7 +35,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uvm_amap.c,v 1.103 2011/08/17 20:46:27 rmind Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uvm_amap.c,v 1.104 2011/10/11 23:57:50 yamt Exp $");
 
 #include "opt_uvmhist.h"
 
@@ -887,6 +887,7 @@
                if (amap->am_anon[lcv] == NULL)
                        continue;
                KASSERT(amap->am_anon[lcv]->an_lock == srcamap->am_lock);
+               KASSERT(amap->am_anon[lcv]->an_ref > 0);
                amap->am_anon[lcv]->an_ref++;
                amap->am_bckptr[lcv] = amap->am_nused;
                amap->am_slots[amap->am_nused] = lcv;



Home | Main Index | Thread Index | Old Index