Skip to content

Add closure-info field when reifying bytecode#9681

Merged
xavierleroy merged 1 commit intoocaml:trunkfrom
sadiqj:fix_bytecode_naked
Jun 14, 2020
Merged

Add closure-info field when reifying bytecode#9681
xavierleroy merged 1 commit intoocaml:trunkfrom
sadiqj:fix_bytecode_naked

Conversation

@sadiqj
Copy link
Copy Markdown
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
Copy Markdown
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.

2 participants