From 9278647424fe9a9046cef6c23ffb0e1558dd1548 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20Strehovsk=C3=BD?= Date: Mon, 4 May 2026 21:03:32 +0900 Subject: [PATCH 1/2] Enable EventSource in System.Threading.Tasks.Tests --- .../System.Threading.Tasks.Tests.csproj | 1 + 1 file changed, 1 insertion(+) diff --git a/src/libraries/System.Runtime/tests/System.Threading.Tasks.Tests/System.Threading.Tasks.Tests.csproj b/src/libraries/System.Runtime/tests/System.Threading.Tasks.Tests/System.Threading.Tasks.Tests.csproj index a8c936a9e0093c..84894a3857d957 100644 --- a/src/libraries/System.Runtime/tests/System.Threading.Tasks.Tests/System.Threading.Tasks.Tests.csproj +++ b/src/libraries/System.Runtime/tests/System.Threading.Tasks.Tests/System.Threading.Tasks.Tests.csproj @@ -7,6 +7,7 @@ false false + true <_WasmPThreadPoolUnusedSize>10 From 577cdd2caaabc4356ecb8c6146de2869607fd44d Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 4 May 2026 15:03:55 +0000 Subject: [PATCH 2/2] Temporarily disable async profiler tests on NativeAOT Agent-Logs-Url: https://github.com/dotnet/runtime/sessions/c72d785e-5eef-4214-b199-32b053971928 Co-authored-by: lateralusX <11529140+lateralusX@users.noreply.github.com> --- .../System.Runtime.CompilerServices/AsyncProfilerTests.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/libraries/System.Runtime/tests/System.Threading.Tasks.Tests/System.Runtime.CompilerServices/AsyncProfilerTests.cs b/src/libraries/System.Runtime/tests/System.Threading.Tasks.Tests/System.Runtime.CompilerServices/AsyncProfilerTests.cs index b493de4e757978..2917970417434e 100644 --- a/src/libraries/System.Runtime/tests/System.Threading.Tasks.Tests/System.Runtime.CompilerServices/AsyncProfilerTests.cs +++ b/src/libraries/System.Runtime/tests/System.Threading.Tasks.Tests/System.Runtime.CompilerServices/AsyncProfilerTests.cs @@ -39,8 +39,9 @@ public class AsyncProfilerTests // single-threaded WASM this throws PlatformNotSupportedException from // RuntimeFeature.ThrowIfMultithreadingIsNotSupported(), so gate the tests on both // runtime async support and threading support. + // Some tests rely on GetMethodFromNativeIP which is not supported on NativeAOT. public static bool IsRuntimeAsyncAndThreadingSupported => - PlatformDetection.IsRuntimeAsyncSupported && PlatformDetection.IsMultithreadingSupported; + PlatformDetection.IsRuntimeAsyncSupported && PlatformDetection.IsMultithreadingSupported && PlatformDetection.IsNotNativeAot; private const string AsyncProfilerEventSourceName = "System.Runtime.CompilerServices.AsyncProfilerEventSource"; private const int AsyncEventsId = 1;