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

Function BTCpuNotifyMemoryAlloc

Source/Windows/WOW64/Module.cpp:966–976  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

964}
965
966void BTCpuNotifyMemoryAlloc(void* Address, SIZE_T Size, ULONG Type, ULONG Prot, BOOL After, ULONG Status) {
967 if (!After) {
968 ThreadCreationMutex.lock();
969 } else {
970 // MEM_RESET(_UNDO) ignores the passed permissions
971 if (!Status && !(Type & (MEM_RESET | MEM_RESET_UNDO))) {
972 InvalidationTracker->HandleMemoryProtectionNotification(reinterpret_cast<uint64_t>(Address), static_cast<uint64_t>(Size), Prot);
973 }
974 ThreadCreationMutex.unlock();
975 }
976}
977
978void BTCpuNotifyMemoryProtect(void* Address, SIZE_T Size, ULONG NewProt, BOOL After, ULONG Status) {
979 if (!After) {

Callers

nothing calls this directly

Calls 3

lockMethod · 0.45
unlockMethod · 0.45

Tested by

no test coverage detected