提交 b6191ed6 编写于 作者: U UnityAlex

Fixes issue in mono_class_init where we would return immediately instead of...

Fixes issue in mono_class_init where we would return immediately instead of jumping to the cleanup routine. This would leave init_list in a dirty state for subsequent calls leading to recursive type definitions being thrown incorrectly. (case 1191002)
上级 13176729
......@@ -5168,9 +5168,8 @@ mono_class_init (MonoClass *klass)
locked = TRUE;
if (klass->inited || mono_class_has_failure (klass)) {
mono_loader_unlock ();
/* Somebody might have gotten in before us */
return !mono_class_has_failure (klass);
goto leave;
}
UnlockedIncrement (&mono_stats.initialized_class_count);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册