Sounds like a classic case of "not thinking things through properly at the beginning".
I wonder how freeBSD engineered this...Linux appears to grow organically at times.
I wonder how freeBSD engineered this...Linux appears to grow organically at times.
FreeBSD doesn't have a per-thread cache, but does similarly use a generation number to allow operations to detect stale state upon reacquiring the vm map lock. I don't see why it isn't prone to the same kinds of bugs.
if (i=0) {