Skip to content

Commit 7dd3c43

Browse files
committed
reduce UnmanagedMemoryHandle.MaxAllocationAttempts
1 parent 92b8277 commit 7dd3c43

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ImageSharp/Memory/Allocators/Internals/UnmanagedMemoryHandle.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ namespace SixLabors.ImageSharp.Memory.Internals;
1111
internal struct UnmanagedMemoryHandle : IEquatable<UnmanagedMemoryHandle>
1212
{
1313
// Number of allocation re-attempts when detecting OutOfMemoryException.
14-
private const int MaxAllocationAttempts = 1000;
14+
private const int MaxAllocationAttempts = 10;
1515

1616
// Track allocations for testing purposes:
1717
private static int totalOutstandingHandles;

0 commit comments

Comments
 (0)