| 65 | } |
| 66 | |
| 67 | void 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 | |
| 75 | void LookupCache::ClearThreadLocalCaches() { |
| 76 | auto lk = Shared->AcquireLock(); |
nothing calls this directly
no test coverage detected