More thorough treatment of closure offsets#496
Merged
mshinwell merged 11 commits intooxcaml:mainfrom Feb 9, 2022
Merged
Conversation
e941989 to
a3412de
Compare
a3412de to
7a2b4ce
Compare
It can happen that a closure_id/closure_var from another compilation unit only occur in types in the current compilation unit (mainly due to functions/functor's result types), and in that case, we need to export the offsets for these ids/vars, so that later units have access to these offsets without the original compilation unit's cmx.
cf7c502 to
9eeee8c
Compare
Contributor
Author
|
This PR has evolved quite a bit, so here is what it does now:
|
lthls
approved these changes
Feb 9, 2022
Contributor
lthls
left a comment
There was a problem hiding this comment.
I believe that the code is correct. I've left quite a few comments in places where I think the code could be improved.
There's an additional comment that I couldn't place as it occurs in code that isn't part of the diff: Exported_offsets.add_closure_offset and Exported_offsets.add_env_var_offset use the polymorphic comparison in an assertion, and I think that should be fixed too.
lthls
reviewed
Feb 9, 2022
Co-authored-by: Vincent Laviron <vincent.laviron@gmail.com>
mshinwell
approved these changes
Feb 9, 2022
mshinwell
pushed a commit
that referenced
this pull request
Mar 3, 2022
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
It can happen that a closure_id/closure_var from another compilation unit only occur in types in the current compilation unit (mainly due to functions/functor's result types), and in that case, we need to export the offsets for these ids/vars, so that later units have access to these offsets without the original compilation unit's cmx.