diff options
author | Mukul Sabharwal <mjsabby@gmail.com> | 2019-05-22 02:56:05 -0700 |
---|---|---|
committer | David Mason <davmason@microsoft.com> | 2019-05-22 02:56:05 -0700 |
commit | 03a79f6743f4ab78cc41f91e7c50149205cd7c67 (patch) | |
tree | 66b5455101e23ec18716967d0a3507d37689502d /src | |
parent | 797be5d5c87a81f50dbd59e000abd2db7b99237a (diff) | |
download | coreclr-03a79f6743f4ab78cc41f91e7c50149205cd7c67.tar.gz coreclr-03a79f6743f4ab78cc41f91e7c50149205cd7c67.tar.bz2 coreclr-03a79f6743f4ab78cc41f91e7c50149205cd7c67.zip |
GC Moved Objects Profiler API fix (#24541)
Diffstat (limited to 'src')
-rw-r--r-- | src/vm/eventtrace.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vm/eventtrace.cpp b/src/vm/eventtrace.cpp index 25f5273a05..e15709129b 100644 --- a/src/vm/eventtrace.cpp +++ b/src/vm/eventtrace.cpp @@ -676,7 +676,7 @@ void ETW::GCLog::MovedReference( // ProfAPI if (fAllowProfApiNotification) { - BEGIN_PIN_PROFILER(CORProfilerTrackGC()); + BEGIN_PIN_PROFILER(CORProfilerTrackGC() || CORProfilerTrackGCMovedObjects()); g_profControlBlock.pProfInterface->MovedReference(pbMemBlockStart, pbMemBlockEnd, cbRelocDistance, @@ -802,7 +802,7 @@ VOID ETW::GCLog::EndMovedReferences(size_t profilingContext, BOOL fAllowProfApiN // ProfAPI if (fAllowProfApiNotification) { - BEGIN_PIN_PROFILER(CORProfilerTrackGC()); + BEGIN_PIN_PROFILER(CORProfilerTrackGC() || CORProfilerTrackGCMovedObjects()); g_profControlBlock.pProfInterface->EndMovedReferences(&(pCtxForEtwAndProfapi->pctxProfAPI)); END_PIN_PROFILER(); } |