From 0254c18ba2d3fa453bbe7041a5bd845a78ce7c1f Mon Sep 17 00:00:00 2001 From: rwatson Date: Mon, 16 Jan 2006 00:37:20 +0000 Subject: [PATCH] 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 --- lib/libmemstat/memstat_uma.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/libmemstat/memstat_uma.c b/lib/libmemstat/memstat_uma.c index f0912258d93a..ce47c34258a5 100644 --- a/lib/libmemstat/memstat_uma.c +++ b/lib/libmemstat/memstat_uma.c @@ -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;