Skip to content

Commit

Permalink
Enable debug features in release build
Browse files Browse the repository at this point in the history
  • Loading branch information
directhex committed Nov 25, 2019
1 parent 4aa81c9 commit 447afa5
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
2 changes: 0 additions & 2 deletions src/monodroid/jni/monodroid-glue-internal.hh
Original file line number Diff line number Diff line change
Expand Up @@ -177,15 +177,13 @@ namespace xamarin::android::internal
static void thread_start (MonoProfiler *prof, uintptr_t tid);
static void thread_end (MonoProfiler *prof, uintptr_t tid);

#if defined (DEBUG)
void set_debug_env_vars (void);

#if !defined (WINDOWS)
int parse_runtime_args (char *runtime_args, RuntimeOptions *options);
int monodroid_debug_connect (int sock, struct sockaddr_in addr);
int monodroid_debug_accept (int sock, struct sockaddr_in addr);
#endif // !WINDOWS
#endif // DEBUG

#if !defined (RELEASE)
static MonoAssembly* open_from_update_dir (MonoAssemblyName *aname, char **assemblies_path, void *user_data);
Expand Down
6 changes: 0 additions & 6 deletions src/monodroid/jni/monodroid-glue.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1019,7 +1019,6 @@ MonodroidRuntime::propagate_uncaught_exception (MonoDomain *domain, JNIEnv *env,
utils.monodroid_runtime_invoke (domain, method, nullptr, args, nullptr);
}

#if DEBUG
static void
setup_gc_logging (void)
{
Expand All @@ -1028,7 +1027,6 @@ setup_gc_logging (void)
log_categories |= LOG_GC;
}
}
#endif

inline int
MonodroidRuntime::convert_dl_flags (int flags)
Expand Down Expand Up @@ -1142,7 +1140,6 @@ MonodroidRuntime::create_xdg_directories_and_environment (JNIEnv *env, jstring_w
create_xdg_directory (homeDir, ".config", "XDG_CONFIG_HOME");
}

#if DEBUG
void
MonodroidRuntime::set_debug_env_vars (void)
{
Expand All @@ -1169,7 +1166,6 @@ MonodroidRuntime::set_debug_env_vars (void)
}
utils.monodroid_strfreev (args);
}
#endif /* DEBUG */

inline void
MonodroidRuntime::set_trace_options (void)
Expand Down Expand Up @@ -1422,10 +1418,8 @@ MonodroidRuntime::Java_mono_android_Runtime_initInternal (JNIEnv *env, jclass kl
init_reference_logging (androidSystem.get_primary_override_dir ());
androidSystem.create_update_dir (androidSystem.get_primary_override_dir ());

#if DEBUG
setup_gc_logging ();
set_debug_env_vars ();
#endif

#ifndef RELEASE
jstr = env->GetObjectArrayElement (externalStorageDirs, 0);
Expand Down

0 comments on commit 447afa5

Please sign in to comment.