Skip to content

Commit 49baf1d

Browse files
authored
Decrease number of allocations in new test (#115887)
Otherwise the test runs very slowly under DOTNET_GCStress=1/3.
1 parent 7e7e195 commit 49baf1d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/tests/JIT/Regression/JitBlue/Runtime_115815/Runtime_115815.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@ public class Runtime_115815
1111
[Fact]
1212
public static void TestEntryPoint()
1313
{
14-
var destination = new KeyValuePair<Container, double>[1_000_000];
14+
var destination = new KeyValuePair<Container, double>[1_000];
1515

1616
// loop to make this method fully interruptible + to get into OSR version
17-
for (int i = 0; i < destination.Length; i++)
17+
for (int i = 0; i < destination.Length * 1000; i++)
1818
{
19-
destination[i] = default;
19+
destination[i / 1000] = default;
2020
}
2121

2222
for (int i = 0; i < 5; i++)

0 commit comments

Comments
 (0)