should we use atomic instructions to manipulate vmstats.v_wire_count?

Nicolas Thery nthery at gmail.com
Sun Jan 13 01:49:46 PST 2008


Hello,

I noticed that vmstats.v_wire_count is incremented and decremented w/o
protection.  In contrast, atomic instructions (from <atomic.h>) are
used in freebsd.

Is it a bug in dfly or is it intentional?

Cheers,
Nicolas





More information about the Kernel mailing list