Skip to content

Add [Deleted_code] case for code ids in set of closures.#2642

Merged
mshinwell merged 9 commits intooxcaml:mainfrom
Ekdohibs:set-of-closures-deleted-code
Jul 2, 2024
Merged

Add [Deleted_code] case for code ids in set of closures.#2642
mshinwell merged 9 commits intooxcaml:mainfrom
Ekdohibs:set-of-closures-deleted-code

Conversation

@Ekdohibs
Copy link
Copy Markdown
Contributor

@Ekdohibs Ekdohibs commented May 31, 2024

This is a prerequisite for #2213. It adds a way to specify that some code ids in a set of closures have been deleted, and the closure therefore does not need a code pointer (but the function slot is still used for projections, and the closure still exists). For now, we do not change the layout and simply put a zero instead of the code id; in the future we can make slot_offsets share the slot as much as possible.

@mshinwell mshinwell added the flambda2 Prerequisite for, or part of, flambda2 label May 31, 2024
@Ekdohibs Ekdohibs force-pushed the set-of-closures-deleted-code branch from be04378 to 8f5531c Compare June 19, 2024 09:44
Copy link
Copy Markdown
Contributor

@lthls lthls left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me

@mshinwell mshinwell merged commit 9fd571e into oxcaml:main Jul 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

flambda2 Prerequisite for, or part of, flambda2

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants