diff options
author | Mary <mary@mary.zone> | 2023-06-26 03:37:12 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-26 01:37:12 +0000 |
commit | 9860bfb2cdb2a3f6093d936d647b1f254a23120d (patch) | |
tree | 4944c305d59daf546b63f1f048b6b9334ed5fb8b /src/Ryujinx.Memory/MemoryBlock.cs | |
parent | f6ada8d1697502a6b37192c9cf9a32acfa28b51a (diff) |
misc: memory: Migrate from OutOfMemoryException to SystemException entirely (#5399)1.1.920
Fix a regression with address space allocation while providing more
information about the context of the exception.
Diffstat (limited to 'src/Ryujinx.Memory/MemoryBlock.cs')
-rw-r--r-- | src/Ryujinx.Memory/MemoryBlock.cs | 6 |
1 files changed, 3 insertions, 3 deletions
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 /// </summary> /// <param name="size">Size of the memory block in bytes</param> /// <param name="flags">Flags that controls memory block memory allocation</param> - /// <exception cref="OutOfMemoryException">Throw when there's no enough memory to allocate the requested size</exception> + /// <exception cref="SystemException">Throw when there's an error while allocating the requested size</exception> /// <exception cref="PlatformNotSupportedException">Throw when the current platform is not supported</exception> public MemoryBlock(ulong size, MemoryAllocationFlags flags = MemoryAllocationFlags.None) { @@ -66,7 +66,7 @@ namespace Ryujinx.Memory /// </summary> /// <param name="size">Size of the memory block in bytes</param> /// <param name="sharedMemory">Shared memory to use as backing storage for this block</param> - /// <exception cref="OutOfMemoryException">Throw when there's no enough address space left to map the shared memory</exception> + /// <exception cref="SystemException">Throw when there's an error while mapping the shared memory</exception> /// <exception cref="PlatformNotSupportedException">Throw when the current platform is not supported</exception> private MemoryBlock(ulong size, IntPtr sharedMemory) { @@ -82,7 +82,7 @@ namespace Ryujinx.Memory /// </summary> /// <returns>A new memory block that shares storage with this one</returns> /// <exception cref="NotSupportedException">Throw when the current memory block does not support mirroring</exception> - /// <exception cref="OutOfMemoryException">Throw when there's no enough address space left to map the shared memory</exception> + /// <exception cref="SystemException">Throw when there's an error while mapping the shared memory</exception> /// <exception cref="PlatformNotSupportedException">Throw when the current platform is not supported</exception> public MemoryBlock CreateMirror() { |