Skip to content

.NET 10 RC1 ModuleLoadStarted callback triggered multiple times in parallel for the same assembly and module #120296

@georgschausberger

Description

@georgschausberger

Are there any intended changes starting with .NET 10 to load the same module with different ModuleIDs?

ICorProfiler ModuleLoadStarted callback is triggered multiple times if two threads are using the same not yet initialized type in an external module.

This possibly may lead profilers to apply changes during module load multiple times and cause overhead or failures.

Is this connected the LoaderOptimizations present in the old .NET Framework runtimes?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions