Skip to content

Add config switch to fully disable hot-reload #78540

Closed

Description

@jkotas

Enabling metadata updater used by hot-reload causes the runtime and libraries to take codepaths conditionalized by MetadataUpdater.IsSupported property. These codepaths receive less thorough testing and have higher risk of containing bugs. #78218 has been an example of such bug.

Metadata updater is automatically enabled when managed debugger is attached and there is no way to suppress it:

result = CORDebuggerAttached() || g_pConfig->ForceEnc() || g_pConfig->DebugAssembliesModifiable();
. It means that a bug in hot-reload specific codepath can make the application impossible to debug. This situation was encountered in #78218.

We should add a config switch that unconditionally disables metadata updater and that can be used as a workaround for bugs in hot-reload specific codepaths.

Context: #78218 (comment)

Activity

  1. ghost added
    untriagedNew issue has not been triaged by the area owner
    on Nov 18, 2022
  2. jkotas commented on Nov 18, 2022

    @jkotas
    MemberAuthor
  3. marek-safar commented on Nov 19, 2022

    @marek-safar
    Contributor
  4. added this to the 8.0.0 milestone on Nov 23, 2022
  5. ghost removed
    untriagedNew issue has not been triaged by the area owner
    on Nov 23, 2022
  6. added
    enhancementProduct code improvement that does NOT require public API changes/additions
    on Nov 23, 2022
  7. modified the milestones: 8.0.0, Future on May 17, 2023
  8. modified the milestones: Future, 11.0.0 on Dec 12, 2025
  9. added
    in-prThere is an active PR which will close this issue when it is merged
    on Jan 29, 2026
  10. added a commit that references this issue on Feb 19, 2026
    57ff75e
  11. added a commit that references this issue on Mar 2, 2026
    e612c90
  12. locked and limited conversation to collaborators on Mar 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area-Diagnostics-coreclrenhancementProduct code improvement that does NOT require public API changes/additionsin-prThere is an active PR which will close this issue when it is merged

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions