From f61caf48cac895f5de0a4737f9b3dd34a22a74ac Mon Sep 17 00:00:00 2001 From: Milos Kotlar Date: Fri, 8 Sep 2023 18:26:02 +0200 Subject: [PATCH] [mono][ios] Call mono_gc_init_finalizer_thread to allow gc thread creation (#91785) * Invoke mono_gc_init_finalizer_thread from the embedder to create the finalizer thread * Enable runtime test --- src/tasks/AppleAppBuilder/Templates/runtime.m | 3 --- src/tests/issues.targets | 3 --- 2 files changed, 6 deletions(-) diff --git a/src/tasks/AppleAppBuilder/Templates/runtime.m b/src/tasks/AppleAppBuilder/Templates/runtime.m index 60509c21fefa2..d577f06a3a1de 100644 --- a/src/tasks/AppleAppBuilder/Templates/runtime.m +++ b/src/tasks/AppleAppBuilder/Templates/runtime.m @@ -382,10 +382,7 @@ static bool is_pinvoke_override_library (const char* libraryName) MonoDomain *domain = mono_jit_init_version ("dotnet.ios", "mobile"); assert (domain); -#if !FORCE_INTERPRETER && (!TARGET_OS_SIMULATOR || FORCE_AOT) - // device runtimes are configured to use lazy gc thread creation mono_gc_init_finalizer_thread (); -#endif MonoAssembly *assembly = load_assembly (executable, NULL); assert (assembly); diff --git a/src/tests/issues.targets b/src/tests/issues.targets index af9be82232cb8..18d5e0cef7db0 100644 --- a/src/tests/issues.targets +++ b/src/tests/issues.targets @@ -3699,9 +3699,6 @@ needs triage - - https://github.com/dotnet/runtime/issues/90012 - Dynamic code generation is not supported on this platform