tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: would a mutex_wait be useful?



On Tue, Nov 04, 2008 at 08:24:20PM +0000, Christos Zoulas wrote:
> if (zeropage == NULL)
>       zeropage = malloc(PAGE_SIZE, M_TEMP, M_WAITOK|M_ZERO);

...and if you don't want to leak memory, you can assign zeropage with
cas.

Joerg


Home | Main Index | Thread Index | Old Index