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][wasm] Rework the handling of GC references in AOTed code. #59352

Merged
merged 1 commit into from
Sep 21, 2021

Commits on Sep 20, 2021

  1. [mono][wasm] Rework the handling of GC references in AOTed code.

    Previously, variables holding GC refs were marked volatile so they
    were loaded/stored to the C stack on every access. Since the stack
    is conservatively scanned, all the objects pointed to by it are pinned,
    so there is no need to load them on every access. Instead of
    marking them as volatile, allocate a 'gc pinning' area on the stack,
    and store ref variables to it after they are assigned. This improves
    code size and performance.
    vargaz committed Sep 20, 2021
    Configuration menu
    Copy the full SHA
    a46aba0 View commit details
    Browse the repository at this point in the history