diff options
author | alc <alc@FreeBSD.org> | 2004-07-06 17:35:10 +0000 |
---|---|---|
committer | alc <alc@FreeBSD.org> | 2004-07-06 17:35:10 +0000 |
commit | 4f5d8d196fa5f3bd25f0ca37ab46e7603f4c874c (patch) | |
tree | 831f6d3cfb2150a3577f57ef44d0a303216651d2 /sys/vm/vm_map.h | |
parent | 28129f07e4972ded2f17941cc6ffdafc4f53e978 (diff) | |
download | FreeBSD-src-4f5d8d196fa5f3bd25f0ca37ab46e7603f4c874c.zip FreeBSD-src-4f5d8d196fa5f3bd25f0ca37ab46e7603f4c874c.tar.gz |
Micro-optimize vmspace for 64-bit architectures: Colocate vm_refcnt and
vm_exitingcnt so that alignment does not result in wasted space.
Diffstat (limited to 'sys/vm/vm_map.h')
-rw-r--r-- | sys/vm/vm_map.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/vm/vm_map.h b/sys/vm/vm_map.h index 9e53550..c8cb74f 100644 --- a/sys/vm/vm_map.h +++ b/sys/vm/vm_map.h @@ -220,7 +220,6 @@ vm_map_modflags(vm_map_t map, vm_flags_t set, vm_flags_t clear) struct vmspace { struct vm_map vm_map; /* VM address map */ struct pmap vm_pmap; /* private physical map */ - int vm_refcnt; /* number of references */ 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 @@ -233,6 +232,7 @@ struct vmspace { 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 */ }; #ifdef _KERNEL |