Repository navigation
[browser][coreclr] Preserve timer callback during app trimming - #138001
Merged
Merged
Conversation
Root only TimerQueue.TimerHandler for single-threaded Browser CoreCLR so native relinking retains its required SystemJS_ExecuteTimerCallback export even when the application does not use managed timers. Add a trimmed Release native-relink regression with worker hosting disabled and document the callback retention contract. Co-authored-by: Copilot <[email protected]>
|
Azure Pipelines: Successfully started running 3 pipeline(s). 12 pipeline(s) were filtered out due to trigger conditions. There may be pipelines that require an authorized user to comment /azp run to run. |
Contributor
|
Tagging subscribers to 'arch-wasm': @lewing, @pavelsavara |
This was referenced Nov 20, 2026
jkotas
reviewed
Nov 20, 2026
Member
|
Can this be deleted ? |
The CoreCLR Browser linker descriptor roots TimerHandler independently of managed timer use, making the method-level DynamicDependency redundant. Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
This was referenced Nov 23, 2026
pavelsavara
marked this pull request as ready for review
November 23, 2026 16:05
maraf
approved these changes
Nov 23, 2026
jkotas
reviewed
Nov 23, 2026
jkotas
reviewed
Nov 23, 2026
Co-authored-by: Copilot <[email protected]>
jkotas
approved these changes
Nov 23, 2026
Member
Author
|
/ba-g infra issues |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
TimerQueue.TimerHandlerin a Browser-specific CoreCLR linker descriptor, gated to single-threaded Browser where that implementation exists. Its reachable dependencies are preserved normally; the entire type is not explicitly rooted.TimerQueue.Portable.cs) instead, so the single-threaded descriptor is not included.DynamicDependency("TimerHandler")now that the descriptor roots the callback.SystemJS_ExecuteTimerCallbackexport available when app trimming removes all managed timer usage. Portable call helpers already regenerate from trimmed IL, but the native JavaScript library still requires this export.NativeRelinkWithoutManagedTimers, which publishes a minimal trimmed Release app with native relinking andWasmRunInWorker=false, then runs it in Chrome and verifies exit code 42.Resolves #137985
Note
This pull request was prepared with GitHub Copilot assistance.