Skip to content

Commit

Permalink
remove prototyping log messages
Browse files Browse the repository at this point in the history
  • Loading branch information
lambdageek committed Oct 23, 2023
1 parent 2194668 commit ddebe93
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/mono/mono/metadata/object.c
Original file line number Diff line number Diff line change
Expand Up @@ -507,7 +507,7 @@ mono_runtime_class_init_full (MonoVTable *vtable, MonoError *error)
blocked = GUINT_TO_POINTER (MONO_NATIVE_THREAD_ID_TO_UINT (lock->initializing_tid));
while ((pending_lock = (TypeInitializationLock*) g_hash_table_lookup (blocked_thread_hash, blocked))) {
if (mono_native_thread_id_equals (pending_lock->initializing_tid, tid)) {
if (mono_trace_is_traced (G_LOG_LEVEL_DEBUG, MONO_TRACE_TYPE) && strstr (m_class_get_image(klass)->name, "HelloWorld") != NULL) {
if (mono_trace_is_traced (G_LOG_LEVEL_DEBUG, MONO_TRACE_TYPE)) {
char* type_name = mono_type_full_name (m_class_get_byval_arg (klass));
mono_trace (G_LOG_LEVEL_DEBUG, MONO_TRACE_TYPE, "Detected deadlock for class .cctor for %s from '%s'", type_name, m_class_get_image (klass)->name);
g_free (type_name);
Expand All @@ -517,8 +517,6 @@ mono_runtime_class_init_full (MonoVTable *vtable, MonoError *error)
mono_type_initialization_unlock ();
goto return_true;
} else {
mono_trace (G_LOG_LEVEL_DEBUG, MONO_TRACE_TYPE, "special case");

/* the thread doing the initialization is blocked on this thread,
but on a lock that has already been freed. It just hasn't got
time to awake */
Expand Down

0 comments on commit ddebe93

Please sign in to comment.