Skip to content

RyuJIT: reconsider arm32 callfinally code pattern #59453

Closed

Description

@BruceForstall

The JIT doesn't allow retless callfinally on ARM. Perhaps we should allow them, and generate "normal" calls instead of the mov lr, <continuation>; jmp <finally> form we generate now. Then we might be able to get rid of all the BBF_FINALLY_TARGET code, but we would need to set FEATURE_EH_CALLFINALLY_THUNKS=1. It might generate some worse code, which shouldn't normally matter because we now have finally cloning. We'd have to make sure the VM stack walker is ok with it. It would make ARM32 work just like ARM64, which might be advantageous. And if we could get rid of BBF_FINALLY_TARGET, that would be nice. If ARM32 chips implement a return address stack keyed off bl instructions (I don't know if they do), it might improve performance.

category:design
theme:eh

Activity

  1. added
    area-CodeGen-coreclr
    on Sep 22, 2021
  2. added this to the Future milestone on Sep 22, 2021
  3. ghost added
    untriaged
    on Sep 22, 2021
  4. removed
    untriaged
    on Sep 22, 2021
  5. changed the title [-]RyuJIT: reconsider Linux/arm32 callfinally code pattern[/-] [+]RyuJIT: reconsider arm32 callfinally code pattern[/+] on Sep 22, 2021
  6. added a commit that references this issue on Nov 23, 2023
    5690e19
  7. ghost added
    in-pr
    on Nov 23, 2023
  8. ghost removed
    in-pr
    on Nov 26, 2023
  9. locked and limited conversation to collaborators on Dec 27, 2023
  10. added a commit that references this issue on Jan 25, 2024
    76acd04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-CodeGen-coreclr

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions