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

Method ClearCache

FEXCore/Source/Interface/Core/JIT/JIT.cpp:688–698  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

686}
687
688void Arm64JITCore::ClearCache() {
689 // NOTE: Holding on to the reference here is required to ensure validity of the WriteLock mutex
690 auto PrevCodeBuffer = CurrentCodeBuffer;
691 std::lock_guard lk(PrevCodeBuffer->LookupCache->WriteLock);
692
693 auto CodeBuffer = GetEmptyCodeBuffer();
694 SetBuffer(CodeBuffer->Ptr, CodeBuffer->Size);
695 EmitDetectionString();
696
697 ThreadState->LookupCache->ChangeGuestToHostMapping(*PrevCodeBuffer, *CurrentCodeBuffer->LookupCache);
698}
699
700Arm64JITCore::~Arm64JITCore() {}
701

Callers 2

ClearCodeCacheMethod · 0.45
MarkMemorySharedMethod · 0.45

Calls 1

Tested by

no test coverage detected