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

Fix GCEvent::Wait with timeout on OSX #75298

Merged
merged 1 commit into from
Sep 9, 2022
Merged

Fix GCEvent::Wait with timeout on OSX #75298

merged 1 commit into from
Sep 9, 2022

Conversation

VSadov
Copy link
Member

@VSadov VSadov commented Sep 8, 2022

Fixes:#75005

We are using uninitialized endTime when Wait with a timeout waits on a conditional variable on OSX.
This can result in unpredictable behavior. On NativeAOT it results in BGC starting without a signal and asserting/crashing.

@ghost
Copy link

ghost commented Sep 8, 2022

Tagging subscribers to this area: @dotnet/gc
See info in area-owners.md if you want to be subscribed.

Issue Details

Fixes:#75005

We are using uninitialized endTime when waiting on a conditional variable on OSX.
This can result in unpredictable behavior. On NativeAOT it results in BGC starting without a signal and asserting/crashing.

Author: VSadov
Assignees: -
Labels:

area-GC-coreclr

Milestone: -

@VSadov VSadov requested review from jkotas and janvorli September 8, 2022 19:24
@VSadov
Copy link
Member Author

VSadov commented Sep 8, 2022

I think this will need to be ported to 7.0

Copy link
Member

@jkotas jkotas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@Maoni0
Copy link
Member

Maoni0 commented Sep 8, 2022

agreed. please backport. thanks @VSadov!

Copy link
Member

@janvorli janvorli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thank you!

@VSadov
Copy link
Member Author

VSadov commented Sep 9, 2022

Thanks!!

@VSadov
Copy link
Member Author

VSadov commented Sep 9, 2022

/backport to release/7.0

@github-actions
Copy link
Contributor

github-actions bot commented Sep 9, 2022

Started backporting to release/7.0: https://github.com/dotnet/runtime/actions/runs/3019221522

@ghost ghost locked as resolved and limited conversation to collaborators Oct 9, 2022
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.

4 participants