Re: mpsafe malloc

2002-04-02 Thread Matthew Dillon
Well, if UMA is going to eventually remove kmem_map and just use kernel_map (or vise-versa), then the issue comes down to why kernel_map->lock is lockmgr lock in the first place, instead of a mutex. I think the reason is historical. Basically kernel_map was originally a

mpsafe malloc

2002-04-02 Thread Alfred Perlstein
Started looking at making malloc mpsafe. First issue I came across was this brokenish code in uma_core.c:page_alloc(): if (lockstatus(&kernel_map->lock, NULL)) { *pflag = UMA_SLAB_KMEM; p = (void *) kmem_malloc(kmem_map, bytes, wait); } else {