On 2010-01-19 at 10:50:56 [+0100], Axel Dörfler <axeld@xxxxxxxxxxxxxxxx> wrote: > ingo_weinhold@xxxxxx wrote: > > + // swap the VMCacheRefs > > + mutex_lock(&sCacheListLock); > > + std::swap(fCacheRef, fromCache->fCacheRef); > > + fCacheRef->cache = this; > > + fromCache->fCacheRef->cache = fromCache; > > + mutex_unlock(&sCacheListLock); > > So MoveAllPages() has the semantics of a ReplaceAllPages() or rather > SwitchAllPages()? Since it is a precondition that the cache is empty, those are equivalent. CU, Ingo