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

Function BTCpuNotifyMemoryFree

Source/Windows/WOW64/Module.cpp:989–1000  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

987}
988
989void BTCpuNotifyMemoryFree(void* Address, SIZE_T Size, ULONG FreeType, BOOL After, ULONG Status) {
990 if (!After) {
991 ThreadCreationMutex.lock();
992 if (!Size) {
993 InvalidationTracker->InvalidateContainingSection(reinterpret_cast<uint64_t>(Address), true);
994 } else if (FreeType & MEM_DECOMMIT) {
995 InvalidationTracker->InvalidateAlignedInterval(reinterpret_cast<uint64_t>(Address), static_cast<uint64_t>(Size), true);
996 }
997 } else {
998 ThreadCreationMutex.unlock();
999 }
1000}
1001
1002NTSTATUS BTCpuNotifyMapViewOfSection(void* Unk1, void* Address, void* Unk2, SIZE_T Size, ULONG AllocType, ULONG Prot) {
1003 std::scoped_lock Lock(ThreadCreationMutex);

Callers

nothing calls this directly

Calls 4

lockMethod · 0.45
unlockMethod · 0.45

Tested by

no test coverage detected