File tree Expand file tree Collapse file tree
src/ImageSharp/Memory/Allocators Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -35,12 +35,12 @@ public abstract class MemoryAllocator
3535 internal long MemoryGroupAllocationLimitBytes { get ; private protected set ; } = Environment . Is64BitProcess ? 4L * OneGigabyte : OneGigabyte ;
3636
3737 /// <summary>
38- /// Gets the maximum allowed total allocation size, in bytes, for the current process .
38+ /// Gets the maximum cumulative size, in bytes, of all active allocations made through this allocator instance .
3939 /// </summary>
4040 /// <remarks>
41- /// Defaults to <see cref="long.MaxValue"/>, effectively imposing no limit on total allocations .
42- /// This property can be set to enforce a cap on total memory usage across all allocations made through this allocator instance, providing
43- /// a safeguard against excessive memory consumption .<br/>
41+ /// Defaults to <see cref="long.MaxValue"/>, effectively imposing no limit on the cumulative total .
42+ /// When set, this provides a safeguard against excessive memory consumption by capping the combined size of
43+ /// outstanding allocations issued by this instance .<br/>
4444 /// When the cumulative size of active allocations exceeds this limit, an <see cref="InvalidMemoryOperationException"/> will be thrown to
4545 /// prevent further allocations and signal that the limit has been breached.
4646 /// </remarks>
Original file line number Diff line number Diff line change @@ -49,8 +49,9 @@ public int? AllocationLimitMegabytes
4949 }
5050
5151 /// <summary>
52- /// Gets or sets a value defining the maximum total size that can be allocated by the allocator in Megabytes.
53- /// <see langword="null"/> means platform default: 2GB on 32-bit processes, 8GB on 64-bit processes.
52+ /// Gets or sets a value defining the maximum cumulative size, in Megabytes, of all active allocations made
53+ /// through the created <see cref="MemoryAllocator"/> instance.
54+ /// <see langword="null"/> (the default) imposes no limit on the cumulative total.
5455 /// </summary>
5556 public int ? AccumulativeAllocationLimitMegabytes
5657 {
You can’t perform that action at this time.
0 commit comments