Merge uma_core.c:1.136 from HEAD to RELENG_6:

Skip per-cpu caches associated with absent CPUs when generating a
  memory statistics record stream via sysctl.

Approved by:	re (scottl)
This commit is contained in:
rwatson 2006-02-14 03:37:58 +00:00
parent c2f1fc6b2c
commit 67ad5e7105

View File

@ -3016,6 +3016,8 @@ restart:
bzero(&ups, sizeof(ups));
if (kz->uk_flags & UMA_ZFLAG_INTERNAL)
goto skip;
if (CPU_ABSENT(i))
goto skip;
cache = &z->uz_cpu[i];
if (cache->uc_allocbucket != NULL)
ups.ups_cache_free +=