Skip to content

Commit cd27afe

Browse files
[mono][eventpipe] Fix firing dynamic method wrappers crash (#99712)
Co-authored-by: mdh1418 <[email protected]>
1 parent af764fd commit cd27afe

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/mono/mono/eventpipe/ep-rt-mono-runtime-provider.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -779,6 +779,8 @@ include_method (MonoMethod *method)
779779
return false;
780780
} else if (!m_method_is_wrapper (method)) {
781781
return true;
782+
} else if (method->wrapper_type == MONO_WRAPPER_DYNAMIC_METHOD){
783+
return true;
782784
} else {
783785
WrapperInfo *wrapper = mono_marshal_get_wrapper_info (method);
784786
return (wrapper && wrapper->subtype == WRAPPER_SUBTYPE_PINVOKE) ? true : false;

0 commit comments

Comments
 (0)