diff options
author | Zoltan Varga <vargaz@gmail.com> | 2022-03-18 18:30:44 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-18 18:30:44 +0300 |
commit | daa320afa52ecd390782b1b54f92dc18448ab43b (patch) | |
tree | 7f7b478916007dca76dfd65c7cf9045149ef38ca /src | |
parent | 2306813eaf2066fe63cb4766572fc68e80a24ef7 (diff) |
[mono] Remove unused MONO_DEBUG=dont-free-domains option. (#66817)
Diffstat (limited to 'src')
-rw-r--r-- | src/mono/mono/metadata/domain-internals.h | 8 | ||||
-rw-r--r-- | src/mono/mono/metadata/domain.c | 2 | ||||
-rw-r--r-- | src/mono/mono/mini/mini-runtime.c | 15 |
3 files changed, 4 insertions, 21 deletions
diff --git a/src/mono/mono/metadata/domain-internals.h b/src/mono/mono/metadata/domain-internals.h index 3834cf7e968..c64eaf02d46 100644 --- a/src/mono/mono/metadata/domain-internals.h +++ b/src/mono/mono/metadata/domain-internals.h @@ -24,14 +24,6 @@ G_BEGIN_DECLS -/* - * If this is set, the memory belonging to appdomains is not freed when a domain is - * unloaded, and assemblies loaded by the appdomain are not unloaded either. This - * allows us to use typed gc in non-default appdomains too, leading to increased - * performance. - */ -extern gboolean mono_dont_free_domains; - struct _MonoAppContext { MonoObject obj; gint32 domain_id; diff --git a/src/mono/mono/metadata/domain.c b/src/mono/mono/metadata/domain.c index fc9534a9e40..f709869f605 100644 --- a/src/mono/mono/metadata/domain.c +++ b/src/mono/mono/metadata/domain.c @@ -69,8 +69,6 @@ static MonoImage *exe_image; static MonoDomain *mono_root_domain; -gboolean mono_dont_free_domains; - /* AppConfigInfo: Information about runtime versions supported by an * aplication. */ diff --git a/src/mono/mono/mini/mini-runtime.c b/src/mono/mono/mini/mini-runtime.c index 4de2156cf0a..7c064dd014d 100644 --- a/src/mono/mono/mini/mini-runtime.c +++ b/src/mono/mono/mini/mini-runtime.c @@ -4011,12 +4011,11 @@ mini_parse_debug_option (const char *option) mini_debug_options.suspend_on_exception = TRUE; else if (!strcmp (option, "suspend-on-unhandled")) mini_debug_options.suspend_on_unhandled = TRUE; - else if (!strcmp (option, "dont-free-domains")) - mono_dont_free_domains = TRUE; else if (!strcmp (option, "dyn-runtime-invoke")) mini_debug_options.dyn_runtime_invoke = TRUE; - else if (!strcmp (option, "gdb")) - fprintf (stderr, "MONO_DEBUG=gdb is deprecated."); + else if (!strcmp (option, "dont-free-domains") || !strcmp (option, "gdb") || + !strcmp (option, "gen-compact-seq-points") || !strcmp (option, "debug-domain-unload")) + fprintf (stderr, "MONO_DEBUG=%s is deprecated.", option); else if (!strcmp (option, "lldb")) mini_debug_options.lldb = TRUE; else if (!strcmp (option, "llvm-disable-inlining")) @@ -4027,8 +4026,6 @@ mini_parse_debug_option (const char *option) mini_debug_options.explicit_null_checks = TRUE; else if (!strcmp (option, "gen-seq-points")) mini_debug_options.gen_sdb_seq_points = TRUE; - else if (!strcmp (option, "gen-compact-seq-points")) - fprintf (stderr, "Mono Warning: option gen-compact-seq-points is deprecated.\n"); else if (!strcmp (option, "no-compact-seq-points")) mini_debug_options.no_seq_points_compact_data = TRUE; else if (!strcmp (option, "single-imm-size")) @@ -4043,8 +4040,6 @@ mini_parse_debug_option (const char *option) mini_debug_options.check_pinvoke_callconv = TRUE; else if (!strcmp (option, "use-fallback-tls")) mini_debug_options.use_fallback_tls = TRUE; - else if (!strcmp (option, "debug-domain-unload")) - g_error ("MONO_DEBUG option debug-domain-unload is deprecated."); else if (!strcmp (option, "partial-sharing")) mono_set_partial_sharing_supported (TRUE); else if (!strcmp (option, "align-small-structs")) @@ -4508,10 +4503,8 @@ mini_init (const char *filename, const char *runtime_version) mono_unwind_init (); - if (mini_debug_options.lldb || g_hasenv ("MONO_LLDB")) { + if (mini_debug_options.lldb || g_hasenv ("MONO_LLDB")) mono_lldb_init (""); - mono_dont_free_domains = TRUE; - } #ifdef ENABLE_LLVM if (mono_use_llvm) |