-
Notifications
You must be signed in to change notification settings - Fork 5.3k
[MonoVM] Report original DLL name when P/Invoke lookup fails #58206
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Tagging subscribers to this area: Issue DetailsRef: #58185
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM but I think we should also add ifdefs so we don't even try the retry_with_libcoreclr on mobile platforms where we don't have libcoreclr anyway
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: check whether new_scope and orig_scope differ so we don't get duplicate library name in the normal case where a library is not redirected.
|
@filipnavara actually, I just saw that we define MONO_LOADER_LIBRARY_NAME for android so we might be using retry_with_libcoreclr there somehow? probably safer to just leave it for now |
|
I'll clean this up when I get a moment this week. I created it mostly as a reminder that it should be done and then I forgot about it... 😅 |
c40415d to
5714e07
Compare
|
I've reworked the logic a bit so this needs to be re-reviewed. |
lambdageek
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok.
(not something to address in this PR) This function is turning into spaghetti again.
|
/backport to release/6.0 |
|
Started backporting to release/6.0: https://github.com/dotnet/runtime/actions/runs/1217169308 |
Ref: #58185