From 287457c2e71b5e3cb4fd2b85071e8707ab5c648b Mon Sep 17 00:00:00 2001 From: Julian Elischer Date: Sun, 31 Jan 1999 14:09:25 +0000 Subject: Submitted by: Alan Cox Checked by: "Richard Seaman, Jr." Fix the following problem: As the code stands now, growing any stack, and not just the process's main stack, modifies vm->vm_ssize. This is inconsistent with the code earlier in the same procedure. --- sys/vm/vm_map.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'sys/vm') diff --git a/sys/vm/vm_map.c b/sys/vm/vm_map.c index 7e5bc83e7b25..7bf769617683 100644 --- a/sys/vm/vm_map.c +++ b/sys/vm/vm_map.c @@ -61,7 +61,7 @@ * any improvements or extensions that they make and grant Carnegie the * rights to redistribute these changes. * - * $Id: vm_map.c,v 1.143 1999/01/26 02:49:52 julian Exp $ + * $Id: vm_map.c,v 1.144 1999/01/28 00:57:57 dillon Exp $ */ /* @@ -771,8 +771,9 @@ vm_map_growstack (struct proc *p, vm_offset_t addr) new_stack_entry->avail_ssize = stack_entry->avail_ssize - (new_stack_entry->end - new_stack_entry->start); - vm->vm_ssize += new_stack_entry->end - - new_stack_entry->start; + if (is_procstack) + vm->vm_ssize += new_stack_entry->end - + new_stack_entry->start; } } -- cgit v1.3