Skip to content

[Hot Reload] HotReloadException race condition #82354

@tmat

Description

@tmat

The constructor of HotReloadException may be invoked before host has a chance to set Created field.
This may cause the application to crash before the host can handle the rude edit.

Instead of emitting invocation of a delegate store in Created field the compiler should read the delegate from the application context using AppContext.GetData("DOTNET_HOT_RELOAD_RUNTIME_RUDE_EDIT_HOOK") API. The host can set the data before applying any changes that may cause runtime rude edit.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions