cvs commit: src/sys/vm uma_core.c

Bruce M Simpson bms at spc.org
Sun Nov 30 06:11:19 PST 2003


Jeff,

On Sun, Nov 30, 2003 at 12:04:01AM -0800, Jeff Roberson wrote:
>   Log:
>    - Replace the local maxcpu with mp_maxid.  Previously, if mp_maxid
>      was equal to MAXCPU, we would overrun the pcpu_mtx array because maxcpu
>      was calculated incorrectly.
>    - Add some more debugging code so that memory leaks at the time of
>      uma_zdestroy() are more easily diagnosed.

This change appears to break compilation of uniprocessor kernels. The
mp_maxid variable is defined in kern/subr_smp.c. In a uniprocessor kernel,
this symbol is undefined:-

kimchi:~/cvs/src/sys % nm /boot/kernel/kernel | grep mp_maxid
Exit 1

Regards,
BMS


More information about the cvs-src mailing list