Skip to content

Implement hot/cold code splitting #77583

Open

Description

@MichalStrehovsky

Port #74963 to NativeAot.

Activity

  1. added this to the 8.0.0 milestone on Oct 28, 2022
  2. cshung commented on Oct 31, 2022

    @cshung
    Contributor

    Hi @MichalStrehovsky, I had a prototype for this.

    The prototype is able to turn on the CORJIT_FLAG_PROCSPLIT flag and interacts with the JIT under this mode.

    Right now, it will perform the procedure split, generate the code, and place it in the binary.

    End-to-end execution fails because we aren't generating the proper unwind data yet.

    I am stuck trying to figure out how that works, in particular, if I wanted to generate a chained unwind info, I need the RVA to the associated runtime function record, but I can't find how the runtime function records are generated in NativeAOT.

  3. MichalStrehovsky commented on Nov 2, 2022

    @MichalStrehovsky
    MemberAuthor

    Hi @MichalStrehovsky, I had a prototype for this.

    Nice!

    End-to-end execution fails because we aren't generating the proper unwind data yet.

    Yep, this is the main unknown for me too. I don't know much (or anything, to be precise) about unwinding since I never had to work with that codebase.

    Cc @VSadov

  4. MichalStrehovsky commented on Nov 18, 2022

    @MichalStrehovsky
    MemberAuthor

    Once hot/cold splitting is available, we should re-measure #78370.

  5. modified the milestones: 8.0.0, Future on Jun 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    • Status
      No status

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions