Skip to content

Commit f81f825

Browse files
authored
[browser][coreCLR] fix trimming of TimerHandler, BackgroundJobHandler (#122068)
1 parent a88d470 commit f81f825

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/libraries/System.Private.CoreLib/src/System/Threading/ThreadPool.Browser.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ public static void GetAvailableThreads(out int workerThreads, out int completion
7777

7878
public static long CompletedWorkItemCount => 0;
7979

80+
[DynamicDependency("BackgroundJobHandler")] // https://github.com/dotnet/runtime/issues/101434
8081
internal static unsafe void RequestWorkerThread()
8182
{
8283
if (_callbackQueued)

src/libraries/System.Private.CoreLib/src/System/Threading/TimerQueue.Browser.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ private bool SetTimer(uint actualDuration)
7979
}
8080

8181
// shortest time of all TimerQueues
82+
[DynamicDependency("TimerHandler")] // https://github.com/dotnet/runtime/issues/101434
8283
private static unsafe void ReplaceNextTimer(long shortestDueTimeMs, long currentTimeMs)
8384
{
8485
if (shortestDueTimeMs == long.MaxValue)

0 commit comments

Comments
 (0)