From: Aleksey Kliger Date: Wed, 26 Apr 2017 23:36:59 +0000 (-0400) Subject: [loader] Rename enable-minimal=assembly_remapping to desktop_loader X-Git-Url: http://wien.tomnetworks.com/gitweb/?p=mono.git;a=commitdiff_plain;h=9e967f00b3073671b340c1a4e3da7253d5213668 [loader] Rename enable-minimal=assembly_remapping to desktop_loader Use a single DISABLE_DESKTOP_LOADER define instead of DISABLE_ASSEMBLY_REMAPPING and DISABLE_STRICT_STRONG_NAMES --- diff --git a/configure.ac b/configure.ac index 56e56c147e9..8be5513adce 100644 --- a/configure.ac +++ b/configure.ac @@ -1049,7 +1049,7 @@ fi AC_ARG_ENABLE(minimal, [ --enable-minimal=LIST drop support for LIST subsystems. LIST is a comma-separated list from: aot, profiler, decimal, pinvoke, debug, appdomains, verifier, - reflection_emit, reflection_emit_save, large_code, logging, com, ssa, generics, attach, jit, simd, soft_debug, perfcounters, normalization, assembly_remapping, shared_perfcounters, remoting, + reflection_emit, reflection_emit_save, large_code, logging, com, ssa, generics, attach, jit, simd, soft_debug, perfcounters, normalization, desktop_loader, shared_perfcounters, remoting, security, lldb, mdb, sgen_remset, sgen_marksweep_par, sgen_marksweep_fixed, sgen_marksweep_fixed_par, sgen_copying.], [ for feature in `echo "$enable_minimal" | sed -e "s/,/ /g"`; do @@ -1170,11 +1170,10 @@ if test "x$mono_feature_disable_normalization" = "xyes"; then AC_MSG_NOTICE([Disabled String normalization support.]) fi -if test "x$mono_feature_disable_assembly_remapping" = "xyes"; then - AC_DEFINE(DISABLE_ASSEMBLY_REMAPPING, 1, [Disable assembly remapping.]) - AC_MSG_NOTICE([Disabled Assembly remapping.]) - AC_DEFINE(DISABLE_STRICT_STRONG_NAMES, 1, [Disable strict strong name checking.]) - AC_MSG_NOTICE([Disabled strict strong name checking.]) +#TODO: remove assembly_remapping feature name once everyone is using desktop_loader +if test "x$mono_feature_disable_assembly_remapping" = "xyes" || "x$mono_feature_disable_desktop_loader" = "xyes"; then + AC_DEFINE(DISABLE_DESKTOP_LOADER, 1, [Disable desktop assembly loader semantics.]) + AC_MSG_NOTICE([Disabled desktop assembly loader semantics.]) fi if test "x$mono_feature_disable_shared_perfcounters" = "xyes"; then diff --git a/mono/metadata/appdomain.c b/mono/metadata/appdomain.c index dfab9b8a7dc..8a86bc3dea3 100644 --- a/mono/metadata/appdomain.c +++ b/mono/metadata/appdomain.c @@ -2004,7 +2004,7 @@ mono_domain_assembly_preload (MonoAssemblyName *aname, MonoAssemblyCandidatePredicate predicate = NULL; void* predicate_ud = NULL; -#if !defined(DISABLE_STRICT_STRONG_NAMES) +#if !defined(DISABLE_DESKTOP_LOADER) if (G_LIKELY (mono_loader_get_strict_strong_names ())) { predicate = &mono_assembly_candidate_predicate_sn_same_name; predicate_ud = aname; diff --git a/mono/metadata/assembly.c b/mono/metadata/assembly.c index ac192cc92a1..41749dd5684 100644 --- a/mono/metadata/assembly.c +++ b/mono/metadata/assembly.c @@ -89,7 +89,7 @@ static char **assemblies_path = NULL; /* Contains the list of directories that point to auxiliary GACs */ static char **extra_gac_paths = NULL; -#ifndef DISABLE_ASSEMBLY_REMAPPING +#ifndef DISABLE_DESKTOP_LOADER #define FACADE_ASSEMBLY(str) {str, 0, NULL, FALSE, TRUE} @@ -967,7 +967,7 @@ mono_assemblies_init (void) mono_os_mutex_init_recursive (&assemblies_mutex); mono_os_mutex_init (&assembly_binding_mutex); -#ifndef DISABLE_ASSEMBLY_REMAPPING +#ifndef DISABLE_DESKTOP_LOADER assembly_remapping_table = g_hash_table_new (g_str_hash, g_str_equal); int i; @@ -1257,7 +1257,7 @@ mono_assembly_remap_version (MonoAssemblyName *aname, MonoAssemblyName *dest_ana return dest_aname; } -#ifndef DISABLE_ASSEMBLY_REMAPPING +#ifndef DISABLE_DESKTOP_LOADER const AssemblyVersionMap *vmap = (AssemblyVersionMap *)g_hash_table_lookup (assembly_remapping_table, aname->name); if (vmap) { const AssemblyVersionSet* vset; @@ -3600,7 +3600,7 @@ exact_sn_match (MonoAssemblyName *wanted_name, MonoAssemblyName *candidate_name) gboolean framework_assembly_sn_match (MonoAssemblyName *wanted_name, MonoAssemblyName *candidate_name) { -#ifndef DISABLE_ASSEMBLY_REMAPPING +#ifndef DISABLE_DESKTOP_LOADER const AssemblyVersionMap *vmap = (AssemblyVersionMap *)g_hash_table_lookup (assembly_remapping_table, wanted_name->name); if (vmap) { if (!vmap->framework_facade_assembly) { @@ -3659,7 +3659,7 @@ mono_assembly_load_full_nosearch (MonoAssemblyName *aname, MonoAssemblyCandidatePredicate predicate = NULL; void* predicate_ud = NULL; -#if !defined(DISABLE_STRICT_STRONG_NAMES) +#if !defined(DISABLE_DESKTOP_LOADER) if (G_LIKELY (mono_loader_get_strict_strong_names ())) { predicate = &mono_assembly_candidate_predicate_sn_same_name; predicate_ud = aname;