File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
coreclr/nativeaot/BuildIntegration
libraries/System.Threading.ThreadPool/tests Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -256,7 +256,7 @@ The .NET Foundation licenses this file to you under the MIT license.
256
256
257
257
<!-- The managed debugging support in libraries is unused - trim it -->
258
258
<IlcArg Condition =" '$(IlcKeepManagedDebuggerSupport)' != 'true'" Include =" --feature:System.Diagnostics.Debugger.IsSupported=false" />
259
- <IlcArg Condition =" '$(UseWindowsThreadPool)' != '' and '$(_targetOS)' == 'win' and '$(IlcKeepManagedDebuggerSupport)' == 'true' " Include =" --feature:System.Diagnostics.Debugger.IsSupported =$(UseWindowsThreadPool)" />
259
+ <IlcArg Condition =" '$(UseWindowsThreadPool)' != '' and '$(_targetOS)' == 'win'" Include =" --feature:System.Threading.ThreadPool.UseWindowsThreadPool =$(UseWindowsThreadPool)" />
260
260
</ItemGroup >
261
261
262
262
<MakeDir Directories =" $(NativeIntermediateOutputPath)" />
Original file line number Diff line number Diff line change @@ -436,8 +436,7 @@ public void Execute() { }
436
436
437
437
public static bool IsMetricsTestSupported => Environment . ProcessorCount >= 3 && IsThreadingAndRemoteExecutorSupported ;
438
438
439
- // Temporarily disabling for Windows Threadpool, it fails but still unsure why
440
- [ ConditionalFact ( nameof ( IsMetricsTestSupported ) , nameof ( UsePortableThreadPool ) ) ]
439
+ [ ConditionalFact ( nameof ( IsMetricsTestSupported ) ) ]
441
440
public void MetricsTest ( )
442
441
{
443
442
RemoteExecutor . Invoke ( ( ) =>
@@ -541,7 +540,8 @@ public void MetricsTest()
541
540
Assert . True ( totalWorkCountToQueue >= 1 ) ;
542
541
waitForWorkStart = true ;
543
542
scheduleWork ( ) ;
544
- Assert . True ( ThreadPool . ThreadCount >= totalWorkCountToQueue ) ;
543
+ int threadCountLowerBound = UsePortableThreadPool ? totalWorkCountToQueue : 0 ;
544
+ Assert . True ( ThreadPool . ThreadCount >= threadCountLowerBound ) ;
545
545
546
546
int runningWorkItemCount = queuedWorkCount ;
547
547
You can’t perform that action at this time.
0 commit comments