6565#include " timing-internal.hh"
6666#include " search.hh"
6767#include " runtime-util.hh"
68+ #include " monodroid-state.hh"
6869
6970// #include "xamarin_getifaddrs.h"
7071
@@ -87,7 +88,6 @@ MonoCoreRuntimeProperties MonodroidRuntime::monovm_core_properties = {
8788};
8889
8990std::mutex MonodroidRuntime::dso_handle_write_lock;
90- bool MonodroidRuntime::startup_in_progress = true ;
9191
9292void
9393MonodroidRuntime::thread_start ([[maybe_unused]] MonoProfiler *prof, [[maybe_unused]] uintptr_t tid)
@@ -1046,7 +1046,7 @@ MonodroidRuntime::monodroid_dlopen_log_and_return (void *handle, char **err, con
10461046force_inline void *
10471047MonodroidRuntime::monodroid_dlopen_ignore_component_or_load ([[maybe_unused]] hash_t name_hash, const char *name, int flags, char **err) noexcept
10481048{
1049- if (startup_in_progress ) {
1049+ if (MonodroidState::is_startup_in_progress () ) {
10501050 auto ignore_component = [&](const char *label, MonoComponent component) -> bool {
10511051 if ((application_config.mono_components_mask & component) != component) {
10521052 log_info (LOG_ASSEMBLY, " Mono '%s' component requested but not packaged, ignoring" , label);
@@ -1731,7 +1731,7 @@ MonodroidRuntime::Java_mono_android_Runtime_initInternal (JNIEnv *env, jclass kl
17311731 xamarin_app_init (env, get_function_pointer_at_runtime);
17321732 }
17331733#endif // def RELEASE && def ANDROID && def NET
1734- startup_in_progress = false ;
1734+ MonodroidState::mark_startup_done () ;
17351735}
17361736
17371737JNIEXPORT jint JNICALL
0 commit comments