Skip to content

Make it possible to disable method body rewriting #2192

@MichalStrehovsky

Description

@MichalStrehovsky

Linker should respect the NoOptimization MethodImpl flag and it should prevent it from messing with instructions in method bodies. Would make it easier to work around issues like #2181 or dotnet/runtime#57010 that now require more creative workarounds.

I'm putting this in 6.0 because the method body rewriting is a relatively new feature, we're still finding bugs in it, and we'll likely find more when 6.0 ships.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions