Skip to content

Commit

Permalink
Add SHUTDOWNGUARD to NonGcHeapProfiler::ObjectAllocated (dotnet#92096)
Browse files Browse the repository at this point in the history
  • Loading branch information
davmason authored Sep 15, 2023
1 parent 0bd3623 commit bbd8d8a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/tests/profiler/native/nongcheap/nongcheap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ HRESULT NonGcHeapProfiler::Initialize(IUnknown* pICorProfilerInfoUnk)

HRESULT STDMETHODCALLTYPE NonGcHeapProfiler::ObjectAllocated(ObjectID objectId, ClassID classId)
{
SHUTDOWNGUARD();

COR_PRF_GC_GENERATION_RANGE gen;
HRESULT hr = pCorProfilerInfo->GetObjectGeneration(objectId, &gen);

Expand Down

0 comments on commit bbd8d8a

Please sign in to comment.