Remove unnecessary and undesirable 'static' from function-local keg

list, which could cause problems for multi-threaded applications
using libmemstat to monitor UMA in more than one thread
simultaneously.

MFC after:	3 days
This commit is contained in:
rwatson 2006-01-16 00:37:20 +00:00
parent 7a98306144
commit 0254c18ba2

View File

@ -301,7 +301,7 @@ kread_symbol(kvm_t *kvm, int index, void *address, size_t size,
int
memstat_kvm_uma(struct memory_type_list *list, void *kvm_handle)
{
static LIST_HEAD(, uma_keg) uma_kegs;
LIST_HEAD(, uma_keg) uma_kegs;
struct memory_type *mtp;
struct uma_bucket *ubp, ub;
struct uma_cache *ucp;