diff options
author | alc <alc@FreeBSD.org> | 2004-07-24 07:40:35 +0000 |
---|---|---|
committer | alc <alc@FreeBSD.org> | 2004-07-24 07:40:35 +0000 |
commit | 205723430595832e266b142424865a7184c2d23a (patch) | |
tree | cb687e33bc8ee1f48023a61736cc82e45dff5fd0 /sys/vm/vm_map.h | |
parent | 1df6bf2b92b25b6ecae36a1f52a124f67a436ac2 (diff) | |
download | FreeBSD-src-205723430595832e266b142424865a7184c2d23a.zip FreeBSD-src-205723430595832e266b142424865a7184c2d23a.tar.gz |
Simplify vmspace initialization. The bcopy() of fields from the old
vmspace to the new vmspace in vmspace_exec() is mostly wasted effort. With
one exception, vm_swrss, the copied fields are immediately overwritten.
Instead, initialize these fields to zero in vmspace_alloc(), eliminating a
bcopy() from vmspace_exec() and a bzero() from vmspace_fork().
Diffstat (limited to 'sys/vm/vm_map.h')
-rw-r--r-- | sys/vm/vm_map.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/sys/vm/vm_map.h b/sys/vm/vm_map.h index c8cb74f..abd809f 100644 --- a/sys/vm/vm_map.h +++ b/sys/vm/vm_map.h @@ -221,8 +221,6 @@ struct vmspace { struct vm_map vm_map; /* VM address map */ struct pmap vm_pmap; /* private physical map */ struct shmmap_state *vm_shm; /* SYS5 shared memory private data XXX */ -/* we copy between vm_startcopy and vm_endcopy on fork */ -#define vm_startcopy vm_swrss segsz_t vm_swrss; /* resident set size before last swap */ segsz_t vm_tsize; /* text size (pages) XXX */ segsz_t vm_dsize; /* data size (pages) XXX */ @@ -230,7 +228,6 @@ struct vmspace { caddr_t vm_taddr; /* (c) user virtual address of text */ caddr_t vm_daddr; /* (c) user virtual address of data */ caddr_t vm_maxsaddr; /* user VA at max stack growth */ -#define vm_endcopy vm_exitingcnt int vm_exitingcnt; /* several processes zombied in exit1 */ int vm_refcnt; /* number of references */ }; |