Skip to content
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
Don't probe mono aot-cache directory for AOT images
We don't have a global AOT cache directory on any platform

Fixes #33080
  • Loading branch information
lambdageek committed Jul 16, 2021
commit d754af0ddf32d3f33dbbf55073e0924b6827c24d
13 changes: 0 additions & 13 deletions src/mono/mono/mini/aot-runtime.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down