Skip to content

Conversation

@davmason
Copy link
Contributor

@davmason davmason commented Sep 4, 2020

A recurring issue is that we add a new ICorProfilerCallback* interface and then forget to add the code to ~EEToProfInterfaceImpl to release it. See #41791 and #10756 for examples.

This test verifies that its destructor is called after detaching. As far as I can reason there isn't a good way to directly assert that all ICorProfilerCallback* interfaces are released, but in order to test new APIs we would have to change the base Profiler test class to inherit from that interface. So, unless we check in code without tests this will provide coverage.

@davmason davmason added this to the 6.0.0 milestone Sep 4, 2020
@davmason davmason requested a review from a team September 4, 2020 06:49
@davmason davmason self-assigned this Sep 4, 2020
@ghost
Copy link

ghost commented Sep 4, 2020

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

@davmason
Copy link
Contributor Author

@noahfalk @sywhang @dotnet/dotnet-diag does anybody have time to review this?

Copy link
Contributor

@sdmaclea sdmaclea left a comment

Choose a reason for hiding this comment

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

  • Terminate the wait loop on test complete
  • Return result!=100 when test fails.

Copy link
Contributor

@josalem josalem left a comment

Choose a reason for hiding this comment

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

I'm happy to see a test to catch this scenario 👍

Copy link
Contributor

@sdmaclea sdmaclea left a comment

Choose a reason for hiding this comment

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

Nits

Copy link
Member

@noahfalk noahfalk left a comment

Choose a reason for hiding this comment

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

LGTM : )

@davmason davmason merged commit 6ed3261 into dotnet:master Sep 15, 2020
@ghost ghost locked as resolved and limited conversation to collaborators Dec 7, 2020
@davmason davmason deleted the release_test branch January 20, 2021 08:58
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.

5 participants