diff --git a/src/SharpEmu.Core/Memory/PhysicalVirtualMemory.cs b/src/SharpEmu.Core/Memory/PhysicalVirtualMemory.cs index 4991746c..8c6f8f07 100644 --- a/src/SharpEmu.Core/Memory/PhysicalVirtualMemory.cs +++ b/src/SharpEmu.Core/Memory/PhysicalVirtualMemory.cs @@ -1,6 +1,7 @@ // Copyright (C) 2026 SharpEmu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later +using System.Collections.Concurrent; using System.Runtime.InteropServices; using SharpEmu.Core.Loader; using SharpEmu.HLE; @@ -18,7 +19,7 @@ public sealed unsafe class PhysicalVirtualMemory : IVirtualMemory, IGuestMemoryA private readonly object _allocationSearchHintGate = new(); private readonly List _regions = new(); private readonly Dictionary<(ulong DesiredAddress, ulong Alignment, bool Executable), ulong> _allocationSearchHints = new(); - private readonly Dictionary _pageProtections = new(); + private readonly ConcurrentDictionary _pageProtections = new(); private bool _disposed; [ThreadStatic]