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

Method ClearL2Cache

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

Source from the content-addressed store, hash-verified

65}
66
67void LookupCache::ClearL2Cache() {
68 auto lk = Shared->AcquireLock();
69 // Clear out the page memory
70 // PagePointer and PageMemory are sequential with each other. Clear both at once.
71 FEXCore::Allocator::VirtualDontNeed(reinterpret_cast<void*>(PagePointer), ctx->Config.VirtualMemSize / 4096 * 8 + CODE_SIZE, false);
72 AllocateOffset = 0;
73}
74
75void LookupCache::ClearThreadLocalCaches() {
76 auto lk = Shared->AcquireLock();

Callers

nothing calls this directly

Calls 2

VirtualDontNeedFunction · 0.85
AcquireLockMethod · 0.45

Tested by

no test coverage detected