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

Method ClearThreadLocalCaches

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

Source from the content-addressed store, hash-verified

73}
74
75void LookupCache::ClearThreadLocalCaches() {
76 auto lk = Shared->AcquireLock();
77
78 // Clear L1 and L2 by clearing the full cache.
79 FEXCore::Allocator::VirtualDontNeed(reinterpret_cast<void*>(PagePointer), TotalCacheSize, false);
80}
81
82void LookupCache::ClearCache() {
83 auto lk = Shared->AcquireLock();

Callers

nothing calls this directly

Calls 2

VirtualDontNeedFunction · 0.85
AcquireLockMethod · 0.45

Tested by

no test coverage detected