You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 242c38b
Browse filesBrowse the repository at this point in the historyBrowse files
authored
Enable debugger-free Hot Reload on CoreCLR browser WebAssembly (#135496)
<!-- -->
## Summary
Enable debugger-free metadata updates and portable-entrypoint code
versioning on CoreCLR browser and WASI WebAssembly. Browser uses the
existing `dotnet watch` integration; WASI supports
`MetadataUpdater.ApplyUpdate`, not watch transport. Updates affect
subsequent calls; active frames keep running their original code.
- Guard unsupported frame remapping and handle an absent debugger
interface.
- Enable browser/WASI updater regressions, preserving existing Mono
quarantines. Configure the WASI test guest environment and deploy delta
fixtures beside their assemblies.
- Add external-app WebCIL configuration coverage.
Reuses metadata plumbing from
[#135377](#135377). No debugger
implementation or new public API. Related to
[#134337](#134337).
## Validation
macOS arm64:
- October 22, merged main `c871829bb08`: Debug browser/WASI `clr+libs`
passed. Each updater suite: 23 passed, zero failures, two existing
skips.
- Chromium functional: both deltas, exit 42. Generated `browseronly`
archive contains the runner and both delta generations; archive/Mono
gates checked for Unix/Windows properties.
- October 15, older base: native Release build and WebCIL regression
passed. Real browser `dotnet watch`: two updates, preserved state/page
identity, no managed debugger.
Release/R2R, Windows/Linux execution, and attached-profiler/debugger
scenarios were not repeated after this merge.
## Cost
September 30 measurements on the older base: native wasm +41,901 B raw /
+15,069 B gzip; `MethodDescCodeData` 8 → 16 B per allocated record.
Feature overhead is always present; production-size measurements have
not been repeated on the current base.
> [!NOTE]
> This description was prepared with GitHub Copilot.
---------
Co-authored-by: Copilot App <[email protected]>
Co-authored-by: Jan Kotas <[email protected]>
Copilot-Session: 9a6e8921-91d9-449b-b60c-7366dddfb7f4
Copy file name to clipboardExpand all lines: src/libraries/System.Runtime.Loader/tests/ApplyUpdate/System.Reflection.Metadata.ApplyUpdate.Test.MethodBody1/MethodBody1.cs
Copy file name to clipboardExpand all lines: src/libraries/System.Runtime.Loader/tests/ApplyUpdate/System.Reflection.Metadata.ApplyUpdate.Test.MethodBody1/MethodBody1_v1.cs
Copy file name to clipboardExpand all lines: src/libraries/System.Runtime.Loader/tests/ApplyUpdate/System.Reflection.Metadata.ApplyUpdate.Test.MethodBody1/MethodBody1_v2.cs
<!-- ActiveIssue https://github.com/dotnet/runtime/issues/114526 deadlocks on linux CI -->
23
-
<ItemGroupCondition="('$(ContinuousIntegrationBuild)' != 'true' or '$(TargetOS)' != 'browser' or '$(OS)' == 'Windows_NT') and ('$(TargetOS)' != 'wasi' or '$(RuntimeFlavor)' != 'CoreCLR')">
21
+
<ItemGroupCondition="'$(TargetOS)' == 'wasi' and '$(RuntimeFlavor)' == 'CoreCLR'">
<!-- ActiveIssue https://github.com/dotnet/runtime/issues/114526: hot reload tests deadlock on Mono -->
26
+
<ItemGroupCondition="'$(RuntimeFlavor)' != 'Mono' or '$(ContinuousIntegrationBuild)' != 'true' or '$(TargetOS)' != 'browser' or '$(OS)' == 'Windows_NT'">
<!-- ActiveIssue https://github.com/dotnet/runtime/issues/114526 deadlocks on linux CI-->
76
-
<ItemGroupCondition="('$(ContinuousIntegrationBuild)' != 'true' or '$(TargetOS)' != 'browser' or '$(OS)' == 'Windows_NT') and ('$(TargetOS)' != 'wasi' or '$(RuntimeFlavor)' != 'CoreCLR')">
78
+
<!-- ActiveIssue https://github.com/dotnet/runtime/issues/114526: hot reload tests deadlock on Mono-->
79
+
<ItemGroupCondition="'$(RuntimeFlavor)' != 'Mono' or '$(ContinuousIntegrationBuild)' != 'true' or '$(TargetOS)' != 'browser' or '$(OS)' == 'Windows_NT'">
<!-- ActiveIssue https://github.com/dotnet/runtime/issues/114526 deadlocks on linux CI -->
71
-
<ItemGroupCondition="'$(TargetOS)' == 'browser' and '$(OS)' != 'Windows_NT' and '$(ContinuousIntegrationBuild)' == 'true'">
<!-- ActiveIssue https://github.com/dotnet/runtime/issues/114526: hot reload tests deadlock on Mono -->
0 commit comments