Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 10 May 2014 16:30:48 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r265824 - head/sys/vm
Message-ID:  <201405101630.s4AGUmOd002771@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kib
Date: Sat May 10 16:30:48 2014
New Revision: 265824
URL: http://svnweb.freebsd.org/changeset/base/265824

Log:
  Print the entry address in addition to the object.  The variable is
  typically optimized out and debuggers cannot find its value.
  
  Sponsored by:	    The FreeBSD Foundation
  MFC after:	1 week

Modified:
  head/sys/vm/vm_map.c

Modified: head/sys/vm/vm_map.c
==============================================================================
--- head/sys/vm/vm_map.c	Sat May 10 15:38:26 2014	(r265823)
+++ head/sys/vm/vm_map.c	Sat May 10 16:30:48 2014	(r265824)
@@ -1949,7 +1949,8 @@ vm_map_protect(vm_map_t map, vm_offset_t
 		 * charged clipped mapping of the same object later.
 		 */
 		KASSERT(obj->charge == 0,
-		    ("vm_map_protect: object %p overcharged\n", obj));
+		    ("vm_map_protect: object %p overcharged (entry %p)",
+		    obj, current));
 		if (!swap_reserve(ptoa(obj->size))) {
 			VM_OBJECT_WUNLOCK(obj);
 			vm_map_unlock(map);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201405101630.s4AGUmOd002771>