Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Add aot compiler unknown failure workaround #143

Merged
merged 1 commit into from
Jun 29, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions patches/0016-fix-Avoid-AOT-null-generic-crash.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
From f229efd4fc15a29d72d8af58fa70d130ff595352 Mon Sep 17 00:00:00 2001
From: jerome laban <[email protected]>
Date: Fri, 28 Jun 2024 21:38:43 +0000
Subject: [PATCH] fix: Avoid AOT null generic crash

---
src/mono/mono/metadata/metadata.c | 3 +++
1 file changed, 3 insertions(+)

diff --git a/src/mono/mono/metadata/metadata.c b/src/mono/mono/metadata/metadata.c
index f9abe652b01..89cb9a66b6b 100644
--- a/src/mono/mono/metadata/metadata.c
+++ b/src/mono/mono/metadata/metadata.c
@@ -5508,6 +5508,9 @@ mono_metadata_generic_class_is_valuetype (MonoGenericClass *gclass)
static gboolean
_mono_metadata_generic_class_equal (const MonoGenericClass *g1, const MonoGenericClass *g2, gboolean signature_only)
{
+ if (!g1 || !g2)
+ return FALSE;
+
MonoGenericInst *i1 = g1->context.class_inst;
MonoGenericInst *i2 = g2->context.class_inst;

--
2.39.2

Loading