Skip to content

Commit

Permalink
Dynamic Events
Browse files Browse the repository at this point in the history
  • Loading branch information
cshung committed Feb 26, 2024
1 parent 036c530 commit 1abc327
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/coreclr/gc/gc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10334,10 +10334,12 @@ static void do_vxsort (uint8_t** item_array, ptrdiff_t item_count, uint8_t* rang
// use AVX512F only if the list is large enough to pay for downclocking impact
if (IsSupportedInstructionSet (InstructionSet::AVX512F) && (item_count > AVX512F_THRESHOLD_SIZE))
{
GCEventFireVxSort_V1 ();
do_vxsort_avx512 (item_array, &item_array[item_count - 1], range_low, range_high);
}
else
{
GCEventFireVxSort_V1 ();
do_vxsort_avx2 (item_array, &item_array[item_count - 1], range_low, range_high);
}
}
Expand Down
2 changes: 2 additions & 0 deletions src/coreclr/gc/gcevents.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,5 +52,7 @@ DYNAMIC_EVENT(CommittedUsage, GCEventLevel_Information, GCEventKeyword_GC, 1)
DYNAMIC_EVENT(HeapCountTuning, GCEventLevel_Information, GCEventKeyword_GC, 1)
DYNAMIC_EVENT(HeapCountSample, GCEventLevel_Information, GCEventKeyword_GC, 1)

DYNAMIC_EVENT(VxSort, GCEventLevel_Information, GCEventKeyword_GC, 1)

#undef KNOWN_EVENT
#undef DYNAMIC_EVENT

0 comments on commit 1abc327

Please sign in to comment.