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

Fix bug in heap translation #565

Merged
merged 1 commit into from
May 16, 2024

Conversation

MatthewFluet
Copy link
Member

It is valid for an object pointer to point to the "end" of the heap (s->heap.start + s->heap.oldGenSize) if it is a pointer to an object of zero size, such as a zero-length array/vector or a unit array or unit ref, in which case the object proper does not extend beyond the "end" of heap.

Closes #560

It is valid for an object pointer to point to the "end" of the
heap (`s->heap.start + s->heap.oldGenSize`) if it is a pointer to an object of
zero size, such as a zero-length array/vector or a `unit array` or `unit ref`,
in which case the object proper does not extend beyond the "end" of heap.

Closes MLton#560
@MatthewFluet MatthewFluet merged commit 009a897 into MLton:master May 16, 2024
11 checks passed
@MatthewFluet MatthewFluet deleted the translate-heap-issue-560 branch May 16, 2024 00:11
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.

Segmentation fault with extremely large vectors
1 participant