Source-Changes-HG archive

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

[src/trunk]: src/sys/uvm When recycling a vm_map, resize it to the new proces...



details:   https://anonhg.NetBSD.org/src/rev/efce3f351361
branches:  trunk
changeset: 503650:efce3f351361
user:      eeh <eeh%NetBSD.org@localhost>
date:      Sun Feb 11 01:34:23 2001 +0000

description:
When recycling a vm_map, resize it to the new process address space limits.

diffstat:

 sys/uvm/uvm_map.c |  11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)

diffs (25 lines):

diff -r df0a86489c98 -r efce3f351361 sys/uvm/uvm_map.c
--- a/sys/uvm/uvm_map.c Sun Feb 11 01:33:59 2001 +0000
+++ b/sys/uvm/uvm_map.c Sun Feb 11 01:34:23 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: uvm_map.c,v 1.92 2001/02/10 05:05:28 thorpej Exp $     */
+/*     $NetBSD: uvm_map.c,v 1.93 2001/02/11 01:34:23 eeh Exp $ */
 
 /* 
  * Copyright (c) 1997 Charles D. Cranor and Washington University.
@@ -2807,6 +2807,15 @@
                 */
                uvm_unmap(map, map->min_offset, map->max_offset);
 
+               /*
+                * resize the map
+                */
+               vm_map_lock(map);
+               map->min_offset = start;
+               map->max_offset = end;
+               vm_map_unlock(map);
+       
+
        } else {
 
                /*



Home | Main Index | Thread Index | Old Index