version 1.171, 2004/05/04 21:33:40 |
version 1.172, 2004/05/19 22:02:05 |
Line 3573 uvmspace_free(struct vmspace *vm) |
|
Line 3573 uvmspace_free(struct vmspace *vm) |
|
{ |
{ |
struct vm_map_entry *dead_entries; |
struct vm_map_entry *dead_entries; |
struct vm_map *map = &vm->vm_map; |
struct vm_map *map = &vm->vm_map; |
|
int n; |
|
|
UVMHIST_FUNC("uvmspace_free"); UVMHIST_CALLED(maphist); |
UVMHIST_FUNC("uvmspace_free"); UVMHIST_CALLED(maphist); |
|
|
UVMHIST_LOG(maphist,"(vm=0x%x) ref=%d", vm, vm->vm_refcnt,0,0); |
UVMHIST_LOG(maphist,"(vm=0x%x) ref=%d", vm, vm->vm_refcnt,0,0); |
simple_lock(&map->ref_lock); |
simple_lock(&map->ref_lock); |
int n = --vm->vm_refcnt; |
n = --vm->vm_refcnt; |
simple_unlock(&map->ref_lock); |
simple_unlock(&map->ref_lock); |
if (n > 0) |
if (n > 0) |
return; |
return; |