Skip to content

Commit

Permalink
Fix mono error; fix debug-build stack-walk issue
Browse files Browse the repository at this point in the history
  • Loading branch information
steveharter committed Apr 3, 2022
1 parent b8e3967 commit c3a8c14
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/coreclr/vm/appdomain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1556,7 +1556,10 @@ bool SystemDomain::IsReflectionInvocationMethod(MethodDesc* pMeth)
CLASS__RUNTIME_HELPERS,
CLASS__DYNAMICMETHOD,
CLASS__DELEGATE,
CLASS__MULTICAST_DELEGATE
CLASS__MULTICAST_DELEGATE,
CLASS__METHOD_INVOKER,
CLASS__CONSTRUCTOR_INVOKER,
CLASS__DYNAMIC_METHOD_INVOKER
};

static bool fInited = false;
Expand Down
3 changes: 3 additions & 0 deletions src/coreclr/vm/corelib.h
Original file line number Diff line number Diff line change
Expand Up @@ -512,6 +512,9 @@ DEFINE_CLASS(VECTORT, Numerics, Vector`1)

DEFINE_CLASS(MEMBER, Reflection, MemberInfo)

DEFINE_CLASS(METHOD_INVOKER, Reflection, MethodInvoker)
DEFINE_CLASS(CONSTRUCTOR_INVOKER, Reflection, ConstructorInvoker)
DEFINE_CLASS(DYNAMIC_METHOD_INVOKER,ReflectionEmit, DynamicMethodInvoker)

DEFINE_CLASS_U(Reflection, RuntimeMethodInfo, NoClass)
DEFINE_FIELD_U(m_handle, ReflectMethodObject, m_pMD)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1669,7 +1669,9 @@ internal override FieldInfo GetField(FieldInfo fromNoninstanciated)
// Once Mono has managed conversion logic, this method can be removed and the Core
// implementation of this method moved to RuntimeMethod.Invoke().
#if DEBUG
#pragma warning disable CA1822
internal void VerifyValueType(object? value) { }
#pragma warning restore CA1822
#endif

/// <summary>
Expand Down

0 comments on commit c3a8c14

Please sign in to comment.