Commit 28ca633
committed
Improve LOH memory checks in release buffer tests
Refined UsingMemoryStreamSlimReleaseBuffers test logic to assert LOH memory usage only on the first loop and to return early if LOH memory drops to zero after GC or buffer release. This makes the test more robust and prevents false failures when memory is released as expected.1 parent 0c67525 commit 28ca633
1 file changed
Lines changed: 13 additions & 0 deletions
File tree
- Source/Tst/KZDev.PerfUtils.Memory.Heap.Sequential.UnitTests
Source/Tst/KZDev.PerfUtils.Memory.Heap.Sequential.UnitTests/UsingMemoryStreamSlimReleaseBuffers.cs
Lines changed: 13 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
62 | 66 | | |
63 | 67 | | |
64 | 68 | | |
65 | 69 | | |
66 | 70 | | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
67 | 76 | | |
68 | 77 | | |
69 | 78 | | |
| |||
74 | 83 | | |
75 | 84 | | |
76 | 85 | | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
77 | 90 | | |
78 | 91 | | |
79 | 92 | | |
| |||
0 commit comments