From 9860bfb2cdb2a3f6093d936d647b1f254a23120d Mon Sep 17 00:00:00 2001 From: Mary Date: Mon, 26 Jun 2023 03:37:12 +0200 Subject: misc: memory: Migrate from OutOfMemoryException to SystemException entirely (#5399) Fix a regression with address space allocation while providing more information about the context of the exception. --- src/Ryujinx.Memory/MemoryBlock.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/Ryujinx.Memory/MemoryBlock.cs') diff --git a/src/Ryujinx.Memory/MemoryBlock.cs b/src/Ryujinx.Memory/MemoryBlock.cs index 2cf04628..e7fc4751 100644 --- a/src/Ryujinx.Memory/MemoryBlock.cs +++ b/src/Ryujinx.Memory/MemoryBlock.cs @@ -31,7 +31,7 @@ namespace Ryujinx.Memory /// /// Size of the memory block in bytes /// Flags that controls memory block memory allocation - /// Throw when there's no enough memory to allocate the requested size + /// Throw when there's an error while allocating the requested size /// Throw when the current platform is not supported public MemoryBlock(ulong size, MemoryAllocationFlags flags = MemoryAllocationFlags.None) { @@ -66,7 +66,7 @@ namespace Ryujinx.Memory /// /// Size of the memory block in bytes /// Shared memory to use as backing storage for this block - /// Throw when there's no enough address space left to map the shared memory + /// Throw when there's an error while mapping the shared memory /// Throw when the current platform is not supported private MemoryBlock(ulong size, IntPtr sharedMemory) { @@ -82,7 +82,7 @@ namespace Ryujinx.Memory /// /// A new memory block that shares storage with this one /// Throw when the current memory block does not support mirroring - /// Throw when there's no enough address space left to map the shared memory + /// Throw when there's an error while mapping the shared memory /// Throw when the current platform is not supported public MemoryBlock CreateMirror() { -- cgit v1.2.3