Skip to content

RVAOrderingTest fails under composite R2R testing #55966

Description

@davidwrighton

Description

src/tests/Directed/rvastatics/RVAOrderingTest.ilproj fails when compiled in R2R composite mode.

The issue is that the compiler copies only the RVA fields needed by the actual used code into the image using the RVA static fields in their initial location. This has an impact on the correctness of C++/CLI applications; however, as C++/CLI binaries are not supported by Crossgen2 in .NET 6, this is not a significant consequence. A proposed fix is available via pr #55861 but as it is a somewhat risky fix for a scenario unsupported in .NET 6, I did not push the fix into the product. In addition, testing for all possible scenarios via hand-written IL, cannot be done at this time, as ilasm does not support productin non-IL Only binaries, and the current IL sdk integration does not support producing architecture specific binaries.

Regression?

No

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status
    No status

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions