From d754af0ddf32d3f33dbbf55073e0924b6827c24d Mon Sep 17 00:00:00 2001 From: Aleksey Kliger Date: Fri, 16 Jul 2021 10:50:13 -0400 Subject: [PATCH] Don't probe mono aot-cache directory for AOT images We don't have a global AOT cache directory on any platform Fixes https://github.com/dotnet/runtime/issues/33080 --- src/mono/mono/mini/aot-runtime.c | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/src/mono/mono/mini/aot-runtime.c b/src/mono/mono/mini/aot-runtime.c index bad49486d99b12..3b753a44cb0d44 100644 --- a/src/mono/mono/mini/aot-runtime.c +++ b/src/mono/mono/mini/aot-runtime.c @@ -1965,19 +1965,6 @@ load_aot_module (MonoAssemblyLoadContext *alc, MonoAssembly *assembly, gpointer g_free (err); } g_free (aot_name); -#if !defined(HOST_ANDROID) && !defined(HOST_WASM) - if (!sofile) { - char *basename = g_path_get_basename (assembly->image->name); - aot_name = g_strdup_printf ("%s/mono/aot-cache/%s/%s%s", mono_assembly_getrootdir(), MONO_ARCHITECTURE, basename, MONO_SOLIB_EXT); - g_free (basename); - sofile = mono_dl_open (aot_name, MONO_DL_LAZY, &err); - if (!sofile) { - mono_trace (G_LOG_LEVEL_DEBUG, MONO_TRACE_AOT, "AOT: image '%s' not found: %s", aot_name, err); - g_free (err); - } - g_free (aot_name); - } -#endif if (!sofile) { GList *l;