From 55eca1baec8fd737b041c8507c3448db1e92746b Mon Sep 17 00:00:00 2001 From: alc Date: Sat, 3 Dec 2005 22:41:15 +0000 Subject: Eliminate unneeded preallocation at initialization. Reviewed by: tegge --- sys/vm/vm_map.c | 1 - sys/vm/vm_map.h | 1 - 2 files changed, 2 deletions(-) (limited to 'sys/vm') diff --git a/sys/vm/vm_map.c b/sys/vm/vm_map.c index 64b6050..b526f68 100644 --- a/sys/vm/vm_map.c +++ b/sys/vm/vm_map.c @@ -166,7 +166,6 @@ vm_map_startup(void) uma_prealloc(kmapentzone, MAX_KMAPENT); mapentzone = uma_zcreate("MAP ENTRY", sizeof(struct vm_map_entry), NULL, NULL, NULL, NULL, UMA_ALIGN_PTR, 0); - uma_prealloc(mapentzone, MAX_MAPENT); } static void diff --git a/sys/vm/vm_map.h b/sys/vm/vm_map.h index 69cb35d..cc97a48 100644 --- a/sys/vm/vm_map.h +++ b/sys/vm/vm_map.h @@ -296,7 +296,6 @@ long vmspace_wired_count(struct vmspace *vmspace); /* XXX: number of kernel maps and entries to statically allocate */ #define MAX_KMAP 10 #define MAX_KMAPENT 128 -#define MAX_MAPENT 128 /* * Copy-on-write flags for vm_map operations -- cgit v1.1