Wow64: Ensure extended volatile metadata is removed

Was missing this, matches the arm64ec side.
This commit is contained in:
Ryan Houdek committed 2025-09-29 14:13:44 -07:00
1 parent 4e926076c9
commit 418ce0aed9
1 file changed
+5 -1
+5 -1
View File
@@ -1003,7 +1003,11 @@ NTSTATUS BTCpuNotifyMapViewOfSection(void* Unk1, void* Address, void* Unk2, SIZE
void BTCpuNotifyUnmapViewOfSection(void* Address, BOOL After, ULONG Status) {
if (!After) {
ThreadCreationMutex.lock();
InvalidationTracker->InvalidateContainingSection(reinterpret_cast<uint64_t>(Address), true);
auto [Start, Size] = InvalidationTracker->InvalidateContainingSection(reinterpret_cast<uint64_t>(Address), true);
if (Size) {
std::scoped_lock Lock(CTX->GetCodeInvalidationMutex());
CTX->RemoveForceTSOInformation(Start, Size);
}
} else {
ThreadCreationMutex.unlock();
}