Skip to content
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

[DO NOT MERGE][mono] try to interrupt Monitor.Wait #87836

Closed
wants to merge 6 commits into from

Conversation

lambdageek
Copy link
Member

Try one option for fixing #87718

Set SelfContained=true.  Otherwise we get this when trying to run the
app:

```
./artifacts/bin/H
elloWorld/arm64/Release/osx-arm64/publish/HelloWorld
You must install or update .NET to run this application.

App: /Users/alklig/work/dotnet-runtime/runtime-review/artifacts/bin/HelloWorld/arm64/Release/osx-arm64/publish/HelloWorld
```
Question: why does mono_monitor_enter_v4_internal pass
allow_interruption = FALSE to
mono_monitor_try_enter_loop_if_interrupted.
It seems like that would prevent interruptions from interrupting
anything.  And yet somehow legacy mono still works.  It seems like it
should always get into to the retry_contended loop in the inflated
monitor code and not get interrupted.

Need to call WaitInfo.CheckAndResetPendingInterrupt
@ghost
Copy link

ghost commented Jul 21, 2023

Draft Pull Request was automatically closed for 30 days of inactivity. Please let us know if you'd like to reopen it.

@ghost ghost locked as resolved and limited conversation to collaborators Aug 20, 2023
This pull request was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant