MCPcopy Create free account
hub / github.com/FEX-Emu/FEX / ClearCache

Method ClearCache

FEXCore/Source/Interface/Core/LookupCache.cpp:82–89  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

80}
81
82void LookupCache::ClearCache() {
83 auto lk = Shared->AcquireLock();
84
85 // Clear L1 and L2 by clearing the full cache.
86 FEXCore::Allocator::VirtualDontNeed(reinterpret_cast<void*>(PagePointer), TotalCacheSize, false);
87
88 Shared->ClearCache(lk);
89}
90
91void GuestToHostMap::ClearCache(const LockToken&) {
92 // Allocate a new pointer from the BlockLinks pma again.

Callers

nothing calls this directly

Calls 3

VirtualDontNeedFunction · 0.85
clearMethod · 0.80
AcquireLockMethod · 0.45

Tested by

no test coverage detected