Skip to content

Commit 2a63651

Browse files
authored
Raise profiler ClassLoad events for array method tables (#120796)
See discussion around #120411 (comment).
1 parent c2f55e0 commit 2a63651

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

src/coreclr/vm/clsload.cpp

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2851,14 +2851,8 @@ void ClassLoader::NotifyLoad(TypeHandle typeHnd)
28512851
{
28522852
BEGIN_PROFILER_CALLBACK(CORProfilerTrackClasses());
28532853
// We don't tell profilers about typedescs, as per IF above. Also, we don't
2854-
// tell profilers about:
2855-
if (
2856-
// ...generics with unbound variables
2857-
(!pMT->ContainsGenericVariables()) &&
2858-
// ...or array method tables
2859-
// (This check is mainly for NGEN restore, as JITted code won't hit
2860-
// this code path for array method tables anyway)
2861-
(!pMT->IsArray()))
2854+
// tell profilers about generics with unbound variables.
2855+
if (!pMT->ContainsGenericVariables())
28622856
{
28632857
LOG((LF_CLASSLOADER, LL_INFO1000, "Notifying profiler of Started1 %p %s\n", pMT, pMT->GetDebugClassName()));
28642858
// Record successful load of the class for the profiler

0 commit comments

Comments
 (0)