Skip to content

Commit 248f7c2

Browse files
committed
Fix crash when gc is disabled
1 parent 2bcb382 commit 248f7c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mono/metadata/gc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -712,7 +712,7 @@ mono_gc_finalize_notify (void)
712712
g_message ( "%s: prodding finalizer", __func__);
713713
#endif
714714

715-
if (mono_gc_is_null ())
715+
if (mono_gc_is_null () || mono_gc_is_disabled())
716716
return;
717717

718718
#ifdef HOST_WASM

0 commit comments

Comments
 (0)