diff options
| author | 2011-05-24 15:27:36 +0000 | |
|---|---|---|
| committer | 2011-05-24 15:27:36 +0000 | |
| commit | 4e3da9ea5c5c5f4e31e57e65a6f97720cfa2a93f (patch) | |
| tree | d9bb5c2f86c9031ede4e5ba19468f965cd1ce33e /sys/kern/sysv_shm.c | |
| parent | Merge pf_scrub_ip() and pf_scrub_ip6() into a single function. Call (diff) | |
| download | wireguard-openbsd-4e3da9ea5c5c5f4e31e57e65a6f97720cfa2a93f.tar.xz wireguard-openbsd-4e3da9ea5c5c5f4e31e57e65a6f97720cfa2a93f.zip | |
Reimplement uvm/uvm_map.
vmmap is designed to perform address space randomized allocations,
without letting fragmentation of the address space go through the roof.
Some highlights:
- kernel address space randomization
- proper implementation of guardpages
- roughly 10% system time reduction during kernel build
Tested by alot of people on tech@ and developers.
Theo's machines are still happy.
Diffstat (limited to 'sys/kern/sysv_shm.c')
| -rw-r--r-- | sys/kern/sysv_shm.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/sys/kern/sysv_shm.c b/sys/kern/sysv_shm.c index 50f03b9e41c..228e1da7654 100644 --- a/sys/kern/sysv_shm.c +++ b/sys/kern/sysv_shm.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sysv_shm.c,v 1.51 2010/07/03 03:04:55 tedu Exp $ */ +/* $OpenBSD: sysv_shm.c,v 1.52 2011/05/24 15:27:36 ariane Exp $ */ /* $NetBSD: sysv_shm.c,v 1.50 1998/10/21 22:24:29 tron Exp $ */ /* @@ -264,9 +264,6 @@ sys_shmat(struct proc *p, void *v, register_t *retval) attach_va = (vaddr_t)SCARG(uap, shmaddr); else return (EINVAL); - } else { - /* This is just a hint to uvm_map() about where to put it. */ - attach_va = uvm_map_hint(p, prot); } shm_handle = shmseg->shm_internal; uao_reference(shm_handle->shm_object); |
