diff --git a/src/libraries/System.Private.CoreLib/src/System/Threading/ThreadPool.Browser.cs b/src/libraries/System.Private.CoreLib/src/System/Threading/ThreadPool.Browser.cs index 8b07e1b1aebb9a..5250e1df5f1ab9 100644 --- a/src/libraries/System.Private.CoreLib/src/System/Threading/ThreadPool.Browser.cs +++ b/src/libraries/System.Private.CoreLib/src/System/Threading/ThreadPool.Browser.cs @@ -77,6 +77,7 @@ public static void GetAvailableThreads(out int workerThreads, out int completion public static long CompletedWorkItemCount => 0; + [DynamicDependency("BackgroundJobHandler")] // https://github.com/dotnet/runtime/issues/101434 internal static unsafe void RequestWorkerThread() { if (_callbackQueued) diff --git a/src/libraries/System.Private.CoreLib/src/System/Threading/TimerQueue.Browser.cs b/src/libraries/System.Private.CoreLib/src/System/Threading/TimerQueue.Browser.cs index 78157e57924637..db03ddf5731934 100644 --- a/src/libraries/System.Private.CoreLib/src/System/Threading/TimerQueue.Browser.cs +++ b/src/libraries/System.Private.CoreLib/src/System/Threading/TimerQueue.Browser.cs @@ -79,6 +79,7 @@ private bool SetTimer(uint actualDuration) } // shortest time of all TimerQueues + [DynamicDependency("TimerHandler")] // https://github.com/dotnet/runtime/issues/101434 private static unsafe void ReplaceNextTimer(long shortestDueTimeMs, long currentTimeMs) { if (shortestDueTimeMs == long.MaxValue)