diff options
author | Ted Unangst <tedu@cvs.openbsd.org> | 2011-04-23 01:01:35 +0000 |
---|---|---|
committer | Ted Unangst <tedu@cvs.openbsd.org> | 2011-04-23 01:01:35 +0000 |
commit | 465fcedc866499ff12e9dba0038b798a6eac29c8 (patch) | |
tree | 3347ae17682be44a2f814ae5af50bb28ddd2a08c /usr.sbin | |
parent | fded0067ae5c4c0a1c82217b877c21d010efa939 (diff) |
BRKSIZ is the right constant now, so I don't get lots of teeny tiny heaps
mixed up in my address space.
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/procmap/procmap.c | 4 |
1 files changed, 2 insertions, 2 deletions
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 ]"; |