Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[mono][aot] Prefer specific instances instead of gshared for methods … #76033

Merged
merged 1 commit into from
Sep 27, 2022

Commits on Sep 26, 2022

  1. [mono][aot] Prefer specific instances instead of gshared for methods …

    …containing static virtual calls.
    
    These calls cannot be resolved at compile time in gshared methods, so they cannot be inlined etc.
    They are used in perf sensitive BCL code like SpanHelpers. To fix this, modify the AOT compiler
    so in addition to the gshared versions, it emits specific instances of these methods if possible.
    This only affects a small subset of gshared methods so it doesn't lead to a noticable code size increase.
    
    Fixes dotnet#75801.
    vargaz committed Sep 26, 2022
    Configuration menu
    Copy the full SHA
    52f454e View commit details
    Browse the repository at this point in the history