aboutsummaryrefslogtreecommitdiff
path: root/ARMeilleure/Common/AddressTable.cs
diff options
context:
space:
mode:
Diffstat (limited to 'ARMeilleure/Common/AddressTable.cs')
-rw-r--r--ARMeilleure/Common/AddressTable.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/ARMeilleure/Common/AddressTable.cs b/ARMeilleure/Common/AddressTable.cs
index 4af1dc3a..60586a35 100644
--- a/ARMeilleure/Common/AddressTable.cs
+++ b/ARMeilleure/Common/AddressTable.cs
@@ -211,7 +211,7 @@ namespace ARMeilleure.Common
private IntPtr Allocate<T>(int length, T fill, bool leaf) where T : unmanaged
{
var size = sizeof(T) * length;
- var page = Marshal.AllocHGlobal(size);
+ var page = (IntPtr)NativeAllocator.Instance.Allocate((uint)size);
var span = new Span<T>((void*)page, length);
span.Fill(fill);