diff options
| author | JP Dillingham <jp@dillingham.me> | 2022-07-31 22:41:26 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-07-31 22:41:26 -0500 |
| commit | 39f3fd93a4d3c119aade7b3d8a6c58eb7938b853 (patch) | |
| tree | 738a513f21cd9141eaa7577d78f19d1e15f3a25e /src/slskd/Application.cs | |
| parent | 0791bd27e6fc2986d8ad12b0bd7d797af92fc383 (diff) | |
| parent | f38fce05915e26c194636fc66d136974ed2db9cd (diff) | |
| download | slskd-39f3fd93a4d3c119aade7b3d8a6c58eb7938b853.tar.gz | |
Merge pull request #571 from slskd/memory
Tweak options related to garbage collection
Diffstat (limited to 'src/slskd/Application.cs')
| -rw-r--r-- | src/slskd/Application.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/slskd/Application.cs b/src/slskd/Application.cs index 1c7031cc..cd45fbeb 100644 --- a/src/slskd/Application.cs +++ b/src/slskd/Application.cs @@ -180,7 +180,7 @@ namespace slskd GCSettings.LargeObjectHeapCompactionMode = GCLargeObjectHeapCompactionMode.CompactOnce; #pragma warning disable S1215 // "GC.Collect" should not be called - GC.Collect(2, GCCollectionMode.Forced, blocking: false, compacting: true); + GC.Collect(2, GCCollectionMode.Forced, blocking: true, compacting: true); #pragma warning restore S1215 // "GC.Collect" should not be called sw.Stop(); |
