Skip to content

GetAsyncStateMachineDescription may change behavior on app processed by ILLink #32921

@vitek-karas

Description

@vitek-karas

The code in AsyncMethodBuilderCore.GetAsyncStateMachineDescription enumerates all fields on the state machine type and prints out their values into the resulting string.

If a field is not accessed by anything in the application directly, the linker will remove it from the type (with exceptions to non-auto layout types and some special cases). So the enumeration of all fields on a type may return less fields when the app is processed with the linker.

Please review this and determine if the behavior is acceptable or if we should try to find a solution such that we would guarantee that all fields are preserved in this case.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions