Skip to content

Commit 53956ab

Browse files
thaystgCopilot
andauthored
[mono][hotreload] Ignore if we receive an empty update. (#120333)
* If we receive an empty update we should just ignore it. * Update src/mono/mono/component/hot_reload.c Co-authored-by: Copilot <[email protected]> --------- Co-authored-by: Copilot <[email protected]>
1 parent e256339 commit 53956ab

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)