mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-06 17:18:32 +00:00
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:
parent
707ca316b6
commit
c21f7757d2
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=154416
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue