From 2cd5489f2cdba4185c209ef5cd12f49e3f2113d9 Mon Sep 17 00:00:00 2001 From: alc Date: Thu, 19 Jun 2014 21:05:07 +0000 Subject: [PATCH] Eliminate a pointless call to vm_map_clip_start() from vm_map_growstack(). For this call to do anything at all we would have to have two overlapping map entries. Submitted by: kib --- sys/vm/vm_map.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/sys/vm/vm_map.c b/sys/vm/vm_map.c index 98fb1cf2e5da..bbb050e51eca 100644 --- a/sys/vm/vm_map.c +++ b/sys/vm/vm_map.c @@ -3730,9 +3730,6 @@ vm_map_growstack(struct proc *p, vm_offset_t addr) stack_entry->avail_ssize -= grow_amount; vm_map_entry_resize_free(map, stack_entry); rv = KERN_SUCCESS; - - if (next_entry != &map->header) - vm_map_clip_start(map, next_entry, addr); } else rv = KERN_FAILURE; }