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

Add closure-info field when reifying bytecode #9681

Merged
merged 1 commit into from Jun 14, 2020

Conversation

sadiqj
Copy link
Contributor

@sadiqj sadiqj commented Jun 14, 2020

In caml_reify_bytecode a block with a Closure_tag and of size 1 is allocated. This patch adds the closure-info field that I think was missed in PR#9619.

Right now this code in the major GC ends up reading the header of the next object to work out arity. This trips the assert when the testsuite is built with no naked pointers.

Copy link
Contributor

@xavierleroy xavierleroy left a comment

Choose a reason for hiding this comment

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

Yes, that's an obvious mistake and the correct fix. It didn't show up in my testing...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants