|
|
@ -42,7 +42,7 @@ namespace SixLabors.ImageSharp.Memory.Internals |
|
|
if (trimSettings.Enabled) |
|
|
if (trimSettings.Enabled) |
|
|
{ |
|
|
{ |
|
|
UpdateTimer(trimSettings, this); |
|
|
UpdateTimer(trimSettings, this); |
|
|
#if NETCOREAPP3_1_OR_GREATER || NETFRAMEWORK
|
|
|
#if NETCOREAPP3_1_OR_GREATER
|
|
|
Gen2GcCallback.Register(s => ((UniformUnmanagedMemoryPool)s).Trim(), this); |
|
|
Gen2GcCallback.Register(s => ((UniformUnmanagedMemoryPool)s).Trim(), this); |
|
|
#endif
|
|
|
#endif
|
|
|
this.lastTrimTimestamp = Stopwatch.ElapsedMilliseconds; |
|
|
this.lastTrimTimestamp = Stopwatch.ElapsedMilliseconds; |
|
|
|