<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<CLRTestPriority>0</CLRTestPriority>
<UnloadabilityIncompatible>true</UnloadabilityIncompatible>
+ <JitOptimizationSensitive>true</JitOptimizationSensitive>
</PropertyGroup>
<ItemGroup>
<Compile Include="$(MSBuildProjectName).cs" />
private static Dictionary<string, ExpectedEventCount> _expectedEventCounts = new Dictionary<string, ExpectedEventCount>()
{
- { "Microsoft-Windows-DotNETRuntime", 1000 },
+ { "Microsoft-Windows-DotNETRuntime", new ExpectedEventCount(1000, 0.2f) },
{ "Microsoft-Windows-DotNETRuntimeRundown", -1 },
{ "Microsoft-DotNETCore-SampleProfiler", -1 }
};
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<CLRTestPriority>1</CLRTestPriority>
<UnloadabilityIncompatible>true</UnloadabilityIncompatible>
+ <JitOptimizationSensitive>true</JitOptimizationSensitive>
</PropertyGroup>
<ItemGroup>
<Compile Include="ExceptionThrown_V1.cs" />
private static Action _eventGeneratingAction = () =>
{
- for (int i = 0; i < 1000; i++)
+ for (int i = 0; i < 50; i++)
{
- if (i % 100 == 0)
+ if (i % 10 == 0)
Logger.logger.Log($"Called GC.Collect() {i} times...");
ProviderValidation providerValidation = new ProviderValidation();
providerValidation = null;
Logger.logger.Log("GCStartEvents: " + GCStartEvents);
Logger.logger.Log("GCEndEvents: " + GCEndEvents);
- bool GCStartStopResult = GCStartEvents >= 1000 && GCEndEvents >= 1000 && GCStartEvents == GCEndEvents;
+ bool GCStartStopResult = GCStartEvents >= 50 && GCEndEvents >= 50 && Math.Abs(GCStartEvents - GCEndEvents) <=2;
Logger.logger.Log("GCStartStopResult check: " + GCStartStopResult);
Logger.logger.Log("GCRestartEEStartEvents: " + GCRestartEEStartEvents);
Logger.logger.Log("GCRestartEEStopEvents: " + GCRestartEEStopEvents);
- bool GCRestartEEStartStopResult = GCRestartEEStartEvents >= 1000 && GCRestartEEStopEvents >= 1000;
+ bool GCRestartEEStartStopResult = GCRestartEEStartEvents >= 50 && GCRestartEEStopEvents >= 50;
Logger.logger.Log("GCRestartEEStartStopResult check: " + GCRestartEEStartStopResult);
Logger.logger.Log("GCSuspendEEEvents: " + GCSuspendEEEvents);
Logger.logger.Log("GCSuspendEEEndEvents: " + GCSuspendEEEndEvents);
- bool GCSuspendEEStartStopResult = GCSuspendEEEvents >= 1000 && GCSuspendEEEndEvents >= 1000;
+ bool GCSuspendEEStartStopResult = GCSuspendEEEvents >= 50 && GCSuspendEEEndEvents >= 50;
Logger.logger.Log("GCSuspendEEStartStopResult check: " + GCSuspendEEStartStopResult);
return GCStartStopResult && GCRestartEEStartStopResult && GCSuspendEEStartStopResult ? 100 : -1;
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<CLRTestPriority>1</CLRTestPriority>
<UnloadabilityIncompatible>true</UnloadabilityIncompatible>
+ <JitOptimizationSensitive>true</JitOptimizationSensitive>
+ <GCStressIncompatible>true</GCStressIncompatible>
</PropertyGroup>
<ItemGroup>
<Compile Include="GCEvents.cs" />
private static Action _eventGeneratingAction = () =>
{
- for (int i = 0; i < 1000; i++)
+ for (int i = 0; i < 50; i++)
{
- if (i % 100 == 0)
+ if (i % 10 == 0)
Logger.logger.Log($"Called GC.WaitForPendingFinalizers() {i} times...");
ProviderValidation providerValidation = new ProviderValidation();
providerValidation = null;
Logger.logger.Log("Event counts validation");
Logger.logger.Log("GCFinalizersEndEvents: " + GCFinalizersEndEvents);
Logger.logger.Log("GCFinalizersStartEvents: " + GCFinalizersStartEvents);
- return GCFinalizersEndEvents >= 1000 && GCFinalizersStartEvents >= 1000 ? 100 : -1;
+ return GCFinalizersEndEvents >= 50 && GCFinalizersStartEvents >= 50 ? 100 : -1;
};
};
}
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<CLRTestPriority>1</CLRTestPriority>
<UnloadabilityIncompatible>true</UnloadabilityIncompatible>
+ <JitOptimizationSensitive>true</JitOptimizationSensitive>
+ <GCStressIncompatible>true</GCStressIncompatible>
</PropertyGroup>
<ItemGroup>
<Compile Include="GCFinalizers.cs" />
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<CLRTestPriority>0</CLRTestPriority>
<UnloadabilityIncompatible>true</UnloadabilityIncompatible>
+ <JitOptimizationSensitive>true</JitOptimizationSensitive>
</PropertyGroup>
<ItemGroup>
<Compile Include="$(MSBuildProjectName).cs" />
<DefineConstants>$(DefineConstants);STATIC</DefineConstants>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<CLRTestPriority>0</CLRTestPriority>
+ <JitOptimizationSensitive>true</JitOptimizationSensitive>
</PropertyGroup>
<ItemGroup>
<Compile Include="$(MSBuildProjectName).cs" />