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

Implement operator delete on ThreadStressLog #64478

Merged
merged 1 commit into from
Feb 1, 2022

Conversation

cshung
Copy link
Member

@cshung cshung commented Jan 28, 2022

On rare occasions, we do delete ThreadStressLog objects here. We have to be fairly unlucky when that happens, but it is annoying enough when they become false positive when we wanted to reproduce a stress bug.

If we do not override the delete operator, it will use this implementation of the delete operator and hit this assertion.

This change simply leaks the object when we are allocating from the memory-mapped file. I think that is okay given this condition should not happen often.

@cshung cshung force-pushed the public/stress-delete branch from 6e9a4bb to c74c596 Compare January 29, 2022 02:43
Copy link
Contributor

@PeterSolMS PeterSolMS left a comment

Choose a reason for hiding this comment

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

LGTM!

@cshung cshung merged commit ea76f4e into dotnet:main Feb 1, 2022
@cshung cshung deleted the public/stress-delete branch February 1, 2022 17:23
@ghost ghost locked as resolved and limited conversation to collaborators Mar 3, 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.

2 participants