Skip to content

FinalizeObject event sends a BulkType event for every finalized object #39887

Closed
@davmason

Description

@davmason

Description

When the runtime emits the FinalizeObject ETW event, it always emits the BulkType event for the type being finalized. There may be thousands of finalized objects in a trace, and therefore thousands of unnecessary events.

Configuration

All versions of .net core

Regression?

Not a regression, this appears to be the behavior all the way back to desktop.

Other information

This code logs the type with kTypeBehaviorAlwaysLog

ETW::TypeSystemLog::LogTypeAndParametersIfNecessary(
NULL, // Not batching this type with others
(TADDR) pMT,
// Don't spend the time entering the lock and checking the hash table to see
// if we've already logged the type; just log it (if type events are enabled).
ETW::TypeSystemLog::kTypeLogBehaviorAlwaysLog
);

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions