diff options
author | rwatson <rwatson@FreeBSD.org> | 2006-01-16 00:37:20 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2006-01-16 00:37:20 +0000 |
commit | 0254c18ba2d3fa453bbe7041a5bd845a78ce7c1f (patch) | |
tree | 1a77b668463a6d4370bd907a1c42e5423e5e6eea /lib/libmemstat | |
parent | 7a983061443b850ed3c2f0d4ab810733ad0b9af6 (diff) | |
download | FreeBSD-src-0254c18ba2d3fa453bbe7041a5bd845a78ce7c1f.zip FreeBSD-src-0254c18ba2d3fa453bbe7041a5bd845a78ce7c1f.tar.gz |
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
Diffstat (limited to 'lib/libmemstat')
-rw-r--r-- | lib/libmemstat/memstat_uma.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libmemstat/memstat_uma.c b/lib/libmemstat/memstat_uma.c index f091225..ce47c34 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; |