Skip to content

Conversation

davmason
Copy link
Contributor

Backport of #63814 to release/6.0

/cc @ogxd

A 6.0 PR introduced a regression in the profiling APIs, where the ObjectsAllocatedByClass API was triggered by the wrong profiler keyword.

Customer Impact

As it stands in 6.0 profilers cannot enable ObjectsAllocatedByClass without enabling object allocation callbacks, which is extremely expensive, perturbs the process, and is impossible to do on attach.

Testing

Manual and automated tests

Risk

Low, the fix is targeted to just the ObjectsAllocatedByClass API.

* Add test for ObjectsAllocatedByClass profiler callbacks

* Fix ObjectsAllocatedByClass profiler callbacks based on wrong flag

* Fix wrong args in test log

Co-authored-by: Olivier Giniaux <[email protected]>
@ghost ghost assigned davmason Jan 25, 2022
@ghost
Copy link

ghost commented Jan 25, 2022

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

Issue Details

Backport of #63814 to release/6.0

/cc @ogxd

A 6.0 PR introduced a regression in the profiling APIs, where the ObjectsAllocatedByClass API was triggered by the wrong profiler keyword.

Customer Impact

As it stands in 6.0 profilers cannot enable ObjectsAllocatedByClass without enabling object allocation callbacks, which is extremely expensive, perturbs the process, and is impossible to do on attach.

Testing

Manual and automated tests

Risk

Low, the fix is targeted to just the ObjectsAllocatedByClass API.

Author: davmason
Assignees: davmason
Labels:

area-Diagnostics-coreclr

Milestone: -

@davmason davmason requested review from a team and jeffschwMSFT January 25, 2022 17:49
@davmason davmason added this to the 6.0.x milestone Jan 25, 2022
Copy link
Member

@jeffschwMSFT jeffschwMSFT left a comment

Choose a reason for hiding this comment

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

Approved. We should take for consideration in 6.0.x

@jeffschwMSFT jeffschwMSFT added the Servicing-consider Issue for next servicing release review label Jan 25, 2022
@jeffschwMSFT jeffschwMSFT changed the title Fix profiling objectsallocatedbyclass (#63814) [release/6.0] Fix profiling objectsallocatedbyclass (#63814) Jan 25, 2022
@leecow leecow added Servicing-approved Approved for servicing release and removed Servicing-consider Issue for next servicing release review labels Jan 25, 2022
@leecow leecow modified the milestones: 6.0.x, 6.0.3 Jan 25, 2022
Copy link
Member

@hoyosjs hoyosjs left a comment

Choose a reason for hiding this comment

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

LGTM

@safern safern merged commit 3535b89 into dotnet:release/6.0 Feb 7, 2022
@ghost ghost locked as resolved and limited conversation to collaborators Mar 10, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ICorProfilerCallback::ObjectsAllocatedByClass does not work anymore since dotnet 6

6 participants