Skip to content

Commit

Permalink
Less verbose please
Browse files Browse the repository at this point in the history
  • Loading branch information
directhex committed Nov 25, 2019
1 parent 447afa5 commit 5e361b2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/monodroid/jni/monodroid-glue-internal.hh
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,7 @@ namespace xamarin::android::internal

void set_debug_env_vars (void);

#if defined (DEBUG)
#if !defined (WINDOWS)
int parse_runtime_args (char *runtime_args, RuntimeOptions *options);
int monodroid_debug_connect (int sock, struct sockaddr_in addr);
Expand All @@ -187,6 +188,7 @@ namespace xamarin::android::internal

#if !defined (RELEASE)
static MonoAssembly* open_from_update_dir (MonoAssemblyName *aname, char **assemblies_path, void *user_data);
#endif
#endif
private:
MonoMethod *registerType = nullptr;
Expand Down
4 changes: 4 additions & 0 deletions src/monodroid/jni/monodroid-glue.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1019,6 +1019,7 @@ 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 @@ -1027,6 +1028,7 @@ setup_gc_logging (void)
log_categories |= LOG_GC;
}
}
#endif

inline int
MonodroidRuntime::convert_dl_flags (int flags)
Expand Down Expand Up @@ -1418,7 +1420,9 @@ 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 ());

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

#ifndef RELEASE
Expand Down

0 comments on commit 5e361b2

Please sign in to comment.