From 465fcedc866499ff12e9dba0038b798a6eac29c8 Mon Sep 17 00:00:00 2001 From: Ted Unangst Date: Sat, 23 Apr 2011 01:01:35 +0000 Subject: BRKSIZ is the right constant now, so I don't get lots of teeny tiny heaps mixed up in my address space. --- usr.sbin/procmap/procmap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr.sbin') diff --git a/usr.sbin/procmap/procmap.c b/usr.sbin/procmap/procmap.c index 3de09fe1a9e..ba077bc9e14 100644 --- a/usr.sbin/procmap/procmap.c +++ b/usr.sbin/procmap/procmap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: procmap.c,v 1.37 2011/04/10 03:20:59 guenther Exp $ */ +/* $OpenBSD: procmap.c,v 1.38 2011/04/23 01:01:34 tedu Exp $ */ /* $NetBSD: pmap.c,v 1.1 2002/09/01 20:32:44 atatat Exp $ */ /* @@ -828,7 +828,7 @@ findname(kvm_t *kd, struct kbit *vmspace, (caddr_t)vme->end) { name = " [ stack ]"; } else if (D(vmspace, vmspace)->vm_daddr <= (caddr_t)vme->start && - D(vmspace, vmspace)->vm_daddr + MAXDSIZ >= (caddr_t)vme->end && + D(vmspace, vmspace)->vm_daddr + BRKSIZ >= (caddr_t)vme->end && D(vmspace, vmspace)->vm_dsize * getpagesize() / 2 < (vme->end - vme->start)) { name = " [ heap ]"; -- cgit v1.2.3