Skip to content

Commit 1e4efee

Browse files
github-actions[bot]thaystgCopilot
authored
[release/10.0] [mono][hotreload] Make the runtime ignore an update if it is an empty one. (#120334)
* If we receive an empty update we should just ignore it. * Update src/mono/mono/component/hot_reload.c Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --------- Co-authored-by: Thays Grazia <thtaglia@microsoft.com> Co-authored-by: Thays Grazia <thaystg@gmail.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 72afd43 commit 1e4efee

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/mono/mono/component/hot_reload.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2381,9 +2381,11 @@ hot_reload_apply_changes (int origin, MonoImage *image_base, gconstpointer dmeta
23812381
if (!assembly_update_supported (image_base, error)) {
23822382
return;
23832383
}
2384-
2384+
if (dmeta_bytes == 0 && dil_bytes_orig == 0) // we may receive empty updates
2385+
{
2386+
return;
2387+
}
23852388
static int first_origin = -1;
2386-
23872389
if (first_origin < 0) {
23882390
first_origin = origin;
23892391
}

0 commit comments

Comments
 (0)