Skip to content

Commit 8070679

Browse files
authored
Fix loading of refonly assemblies for "classic" apps (#7094)
Fixes: #7091 Context: e1af958 e1af958 refactored a handful of `MonoImage` loading methods and during that process, I mistakenly made reference-only assemblies to be loaded in a "full" way which broke a number of BCL tests. Fix the issue by making sure reference-only assemblies are really loaded as such.
1 parent 944f88a commit 8070679

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/monodroid/jni/embedded-assemblies.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -500,7 +500,7 @@ EmbeddedAssemblies::open_from_bundles (MonoAssemblyLoadContextGCHandle alc_gchan
500500
MonoAssembly*
501501
EmbeddedAssemblies::open_from_bundles_refonly (MonoAssemblyName *aname, [[maybe_unused]] char **assemblies_path, [[maybe_unused]] void *user_data)
502502
{
503-
constexpr bool ref_only = false;
503+
constexpr bool ref_only = true;
504504

505505
return embeddedAssemblies.open_from_bundles (aname, ref_only /* loader_data */, nullptr /* error */, ref_only);
506506
}

0 commit comments

Comments
 (0)