Browse Source

reduce UnmanagedMemoryHandle.MaxAllocationAttempts

pull/2706/head
antonfirsov 2 years ago
parent
commit
7dd3c43a00
  1. 2
      src/ImageSharp/Memory/Allocators/Internals/UnmanagedMemoryHandle.cs

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

@ -11,7 +11,7 @@ namespace SixLabors.ImageSharp.Memory.Internals;
internal struct UnmanagedMemoryHandle : IEquatable<UnmanagedMemoryHandle>
{
// Number of allocation re-attempts when detecting OutOfMemoryException.
private const int MaxAllocationAttempts = 1000;
private const int MaxAllocationAttempts = 10;
// Track allocations for testing purposes:
private static int totalOutstandingHandles;

Loading…
Cancel
Save