Skip to content

Commit

Permalink
[mono][eventpipe] Fix firing dynamic method wrappers crash (#99712)
Browse files Browse the repository at this point in the history
Co-authored-by: mdh1418 <mitchhwang1418@gmail.com>
  • Loading branch information
github-actions[bot] and mdh1418 authored Apr 15, 2024
1 parent af764fd commit cd27afe
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/mono/mono/eventpipe/ep-rt-mono-runtime-provider.c
Original file line number Diff line number Diff line change
Expand Up @@ -779,6 +779,8 @@ include_method (MonoMethod *method)
return false;
} else if (!m_method_is_wrapper (method)) {
return true;
} else if (method->wrapper_type == MONO_WRAPPER_DYNAMIC_METHOD){
return true;
} else {
WrapperInfo *wrapper = mono_marshal_get_wrapper_info (method);
return (wrapper && wrapper->subtype == WRAPPER_SUBTYPE_PINVOKE) ? true : false;
Expand Down

0 comments on commit cd27afe

Please sign in to comment.